Skip to content

Commit

Permalink
TW20982572 adding global privacy statement setting
Browse files Browse the repository at this point in the history
  • Loading branch information
learningtechnologyservices committed Oct 18, 2024
1 parent fae55c4 commit 278bbb7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lang/en/board.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,6 @@
$string['settings:addheadingtolog'] = 'Add heading to log';
$string['settings:addattachmenttolog'] = 'Add attachment to log';
$string['settings:addratingtolog'] = 'Add rating to log';
$string['settings:enableprivacystatement'] = 'Enable privacy statement';
$string['settings:enableprivacystatement_desc'] = 'Show privacy statement as part of Board description.';
$string['privacystatement'] = '<strong>Board Privacy Statement:</strong> Please note that editing teachers, and those with appropriate permissions, are able to view exported data as to which users have created these Board posts and comments.';
7 changes: 7 additions & 0 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
$settings->add(new admin_setting_configtext('mod_board/new_note_icon', get_string('new_note_icon', 'mod_board'),
get_string('new_note_icon_desc', 'mod_board'), 'fa-plus', PARAM_RAW_TRIMMED));

$settings->add(new admin_setting_configcheckbox(
'mod_board/enableprivacystatement',
get_string('settings:enableprivacystatement', 'mod_board'),
get_string('settings:enableprivacystatement_desc', 'mod_board'),
'0'
));

$options = array(
1 => get_string('media_selection_buttons', 'mod_board'),
2 => get_string('media_selection_dropdown', 'mod_board')
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die;

$plugin->component = 'mod_board'; // Full name of the plugin (used for diagnostics).
$plugin->version = 2022040115; // The current module version Use 2022.04.01 as base for 4.00.
$plugin->version = 2022040116; // The current module version Use 2022.04.01 as base for 4.00.
$plugin->requires = 2022041900; // Moodle 4.00 and up.
$plugin->release = '1.401.03 (Build 2022040112)';
$plugin->maturity = MATURITY_STABLE;
4 changes: 4 additions & 0 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@
echo html_writer::tag('div', get_string('blanktargetenabled', 'mod_board'), ['class' => 'small']);
}

if (get_config('mod_board', 'enableprivacystatement')) {
echo html_writer::tag('div', get_string('privacystatement', 'mod_board'), ['class' => 'normal']);
}

echo $OUTPUT->box_start('mod_introbox', 'group_menu');
echo groups_print_activity_menu($cm, $pageurl, true);
echo $OUTPUT->box_end();
Expand Down

0 comments on commit 278bbb7

Please sign in to comment.