Skip to content
Snippets Groups Projects
Commit b6886181 authored by Frode Petterson's avatar Frode Petterson
Browse files

Restrict LRS dependent content types by default

HFJ-2184
parent 6a9c4b71
No related branches found
No related tags found
No related merge requests found
Subproject commit 4a4f69dfb3edf6548df848bb3eca0d1c4136f2d7
Subproject commit 79adb413b81f3c6836b631c949db50e85bfa9f6d
......@@ -83,6 +83,8 @@ $string['enablesavecontentstate'] = 'Save content state';
$string['enablesavecontentstate_help'] = 'Automatically save the current state of interactive content for each user. This means that the user may pick up where he left off.';
$string['contentstatefrequency'] = 'Save content state frequency';
$string['contentstatefrequency_help'] = 'In seconds, how often do you wish the user to auto save their progress. Increase this number if you\'re having issues with many ajax requests';
$string['enabledlrscontenttypes'] = 'Enable LRS dependent content types';
$string['enabledlrscontenttypes_help'] = 'Makes it possible to use content types that rely upon a Learning Record Store to function properly, like the Questionnaire content type.';
// Admin menu.
$string['settings'] = 'H5P Settings';
......
......@@ -56,6 +56,12 @@ if ($ADMIN->fulltree) {
get_string('contentstatefrequency', 'hvp'),
get_string('contentstatefrequency_help', 'hvp'), 30, PARAM_INT));
// Content state.
$settings->add(
new admin_setting_configcheckbox('mod_hvp/enable_lrs_content_types',
get_string('enabledlrscontenttypes', 'hvp'),
get_string('enabledlrscontenttypes_help', 'hvp'), 0));
// Display options for H5P frame.
$settings->add(new admin_setting_heading('mod_hvp/display_options', get_string('displayoptions', 'hvp'), ''));
$settings->add(new admin_setting_configcheckbox('mod_hvp/frame', get_string('enableframe', 'hvp'), '', 1));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment