Commit 063aa299 authored by Elliot Pahl's avatar Elliot Pahl Committed by Elliot Pahl
Browse files

Add 'Warning time for institution expiry' to site options page.

parent c6c76e78
......@@ -166,6 +166,13 @@ $siteoptionform = array(
'defaultvalue' => get_config('registration_sendweeklyupdates'),
'help' => true,
'institutionexpirynotification' => array(
'type' => 'expiry',
'title' => get_string('institutionexpirynotification', 'admin'),
'description' => get_string('institutionexpirynotificationdescription', 'admin'),
'defaultvalue' => is_null(get_config('institutionexpirynotification')) ? '2592000' : get_config('institutionexpirynotification'),
'help' => true,
......@@ -187,7 +194,7 @@ function siteoptions_submit(Pieform $form, $values) {
$fields = array('sitename','lang','theme', 'pathtoclam',
'defaultaccountlifetime', 'defaultaccountinactiveexpire', 'defaultaccountinactivewarn',
'allowpublicviews', 'allowpublicprofiles', 'createpublicgroups', 'searchplugin',
'registration_sendweeklyupdates', 'institutionexpirynotification');
$oldlanguage = get_config('lang');
$oldtheme = get_config('theme');
foreach ($fields as $field) {
......@@ -144,6 +144,8 @@ $string['defaultaccountlifetimedescription'] = 'If set, user accounts will expir
$string['embeddedcontent'] = 'Embedded content';
$string['embeddedcontentdescription'] = 'If you would like users to be able to embed videos or other outside content into their portfolios, you can choose which sites to trust below.';
$string['Everyone'] = 'Everyone';
$string['institutionexpirynotification'] = 'Warning time for institution expiry';
$string['institutionexpirynotificationdescription'] = 'A notification message will be sent to site and institutional admins the long before a site expires';
$string['language'] = 'Language';
$string['pathtoclam'] = 'Path to clam';
$string['pathtoclamdescription'] = 'The filesystem path to clamscan or clamdscan';
<h3>Warning time for institution expiry</h3>
<p>If set, a warning message will be sent to a site and institutional admins this amount of time before an institution is due to expire and be suspended. This time may be specified in Days, Weeks, Months, Years or No End Date may be selected where institutions should not receive a warning before their institution expires.</p>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment