mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #390: Changed outage auto-start default parameter from checkbox to dropdown with option to fully disable.
This commit is contained in:
committed by
Brendan Heywood
parent
ceee32d889
commit
551a97142c
@@ -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