Commit 6b5319ed authored by Astor Bizard's avatar Astor Bizard
Browse files

Added GDPR information for editor interface theme options.

parent 3294b09b
......@@ -93,6 +93,11 @@ class provider implements \core_privacy\local\metadata\provider,
$collection->add_user_preference('vpl_editor_fontsize', 'privacy:metadata:vpl_editor_fontsize');
$collection->add_user_preference('vpl_acetheme', 'privacy:metadata:vpl_acetheme');
$collection->add_user_preference('vpl_terminaltheme', 'privacy:metadata:vpl_terminaltheme');
$collection->add_user_preference('vpl_interfacetheme', 'privacy:metadata:vpl_interfacetheme');
$collection->add_user_preference('vpl_custom_interface_theme_color_primary',
'privacy:metadata:vpl_custom_interface_theme_color_primary');
$collection->add_user_preference('vpl_custom_interface_theme_color_secondary',
'privacy:metadata:vpl_custom_interface_theme_color_secondary');
return $collection;
}
......@@ -580,7 +585,8 @@ class provider implements \core_privacy\local\metadata\provider,
*/
protected static function get_user_preferences(int $userid): array {
$pref = array();
$preferences = ['vpl_editor_fontsize', 'vpl_acetheme', 'vpl_terminaltheme'];
$preferences = ['vpl_editor_fontsize', 'vpl_acetheme', 'vpl_terminaltheme',
'vpl_interfacetheme', 'vpl_custom_interface_theme_color_primary', 'vpl_custom_interface_theme_color_secondary'];
foreach ($preferences as $key) {
$value = get_user_preferences($key, null, $userid);
if (isset($value)) {
......
......@@ -244,6 +244,9 @@ $string ['privacy:metadata:vpl_submissions'] = 'Information of the attempts/subm
$string ['privacy:metadata:vpl_editor_fontsize'] = 'The user preference for the font size of the IDE';
$string ['privacy:metadata:vpl_acetheme'] = 'The user preference for the editor theme of the IDE';
$string ['privacy:metadata:vpl_terminaltheme'] = 'The user preference for the terminal color combination';
$string ['privacy:metadata:vpl_interfacetheme'] = 'The user preference for the editor interface theme of the IDE';
$string ['privacy:metadata:vpl_custom_interface_theme_color_primary'] = 'The user preferences for the editor interface color combination';
$string ['privacy:metadata:vpl_custom_interface_theme_color_secondary'] = 'The user preferences for the editor interface color combination';
$string ['privacy:metadata:vpl:id'] = 'Activity identification number';
$string ['privacy:metadata:vpl:name'] = 'Activity name';
$string ['privacy:metadata:vpl:shortdescription'] = 'Activity short description';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment