MDL-63726 tool_dataprivacy: En-/disable 'Data retention summary' link

This commit is contained in:
Luca Bösch 2018-10-22 23:26:18 +02:00
parent 8b019fb709
commit abc469dd3b
3 changed files with 32 additions and 6 deletions

View file

@ -66,6 +66,12 @@ if ($hassiteconfig) {
new lang_string('requireallenddatesforuserdeletion', 'tool_dataprivacy'),
new lang_string('requireallenddatesforuserdeletion_desc', 'tool_dataprivacy'),
1));
// Whether the data retention summary should be shown in the page footer and in the user profile page.
$privacysettings->add(new admin_setting_configcheckbox('tool_dataprivacy/showdataretentionsummary',
new lang_string('showdataretentionsummary', 'tool_dataprivacy'),
new lang_string('showdataretentionsummary_desc', 'tool_dataprivacy'),
1));
}
}