Allow default start time using cron syntax #163

This commit is contained in:
Brendan Heywood
2020-03-25 22:21:35 +11:00
parent e6a63f02e6
commit 3b1b1ea0e1
5 changed files with 30 additions and 2 deletions

View File

@@ -59,6 +59,13 @@ if ($hassiteconfig && is_enabled_auth('outage')) {
$defaults['default_duration'],
60
));
$settings->add(new admin_setting_configtext(
'auth_outage/default_time',
get_string('defaulttime', 'auth_outage'),
get_string('defaulttimedescription', 'auth_outage'),
'',
PARAM_TEXT
));
$settings->add(new admin_setting_configtext(
'auth_outage/default_title',
get_string('defaulttitle', 'auth_outage'),