MDL-65138 course: add a setting for course publishing

This commit is contained in:
Simey Lameze 2019-03-26 09:46:23 +08:00
parent 3271c39c74
commit 73fabadadd
7 changed files with 18 additions and 6 deletions

View file

@ -48,4 +48,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
$optionalsubsystems->add(new admin_setting_configcheckbox('allowstealth', new lang_string('allowstealthmodules'),
new lang_string('allowstealthmodules_help'), 0, 1, 0));
$optionalsubsystems->add(new admin_setting_configcheckbox('enablecoursepublishing',
new lang_string('enablecoursepublishing', 'hub'), new lang_string('enablecoursepublishing_help', 'hub'), 0));
}