mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-10-22 18:18:07 +02:00
Issue #390: Changed outage auto-start default parameter from checkbox to dropdown with option to fully disable.
This commit is contained in:
1 parent
0105891b2e
commit
a96035be92
2 files changed
+10
-2
No files matched your search
+7
-2
@@ -43,11 +43,16 @@ if ($hassiteconfig) {
|
||||
get_string('settingssectiondefaultsdescription', 'auth_outage') . $description
|
||||
));
|
||||
|
||||
$settings->add(new admin_setting_configcheckbox(
|
||||
$settings->add(new admin_setting_configselect(
|
||||
'auth_outage/default_autostart',
|
||||
get_string('defaultoutageautostart', 'auth_outage'),
|
||||
get_string('defaultoutageautostartdescription', 'auth_outage'),
|
||||
$defaults['default_autostart']
|
||||
'off',
|
||||
[
|
||||
'0' => get_string('autostartoff', 'auth_outage'),
|
||||
'1' => get_string('autostarton', 'auth_outage'),
|
||||
'2' => get_string('forceoff', 'auth_outage'),
|
||||
]
|
||||
));
|
||||
|
||||
$settings->add(new admin_setting_configduration(
|
||||
|
||||
Reference in new issue
Block a user