MDL-75316 admin: Create Share to MoodleNet experimental setting

Originally implemented as MDL-75319
This commit is contained in:
Huong Nguyen 2023-03-09 10:12:58 +07:00 committed by Michael Hawkins
parent 0e08d0df60
commit d9a6577410
2 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,11 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
new lang_string('enablecourserelativedates', 'core_admin'), new lang_string('enablecourserelativedates', 'core_admin'),
new lang_string('enablecourserelativedates_desc', 'core_admin'), 0)); new lang_string('enablecourserelativedates_desc', 'core_admin'), 0));
// Sharing to MoodleNet setting.
$temp->add(new admin_setting_configcheckbox('enablesharingtomoodlenet',
new lang_string('enablesharingtomoodlenet', 'core_admin'),
'', 0));
$ADMIN->add('experimental', $temp); $ADMIN->add('experimental', $temp);
// "debugging" settingpage // "debugging" settingpage

View File

@ -607,6 +607,7 @@ $string['enableplugin'] = 'Enable the {$a} plugin';
$string['enablerecordcache'] = 'Enable record cache'; $string['enablerecordcache'] = 'Enable record cache';
$string['enablerssfeeds'] = 'Enable RSS feeds'; $string['enablerssfeeds'] = 'Enable RSS feeds';
$string['enablesearchareas'] = 'Enable search areas'; $string['enablesearchareas'] = 'Enable search areas';
$string['enablesharingtomoodlenet'] = 'Enable sharing to MoodleNet';
$string['enablestats'] = 'Enable statistics'; $string['enablestats'] = 'Enable statistics';
$string['enabletrusttext'] = 'Enable trusted content'; $string['enabletrusttext'] = 'Enable trusted content';
$string['enableuserfeedback'] = 'Enable feedback about this software'; $string['enableuserfeedback'] = 'Enable feedback about this software';