Commit 5c8ac9f1 authored by Elliot Pahl's avatar Elliot Pahl Committed by Elliot Pahl
Browse files

Add 'Auto-suspend expired institutions' to site options page.

parent 063aa299
......@@ -173,6 +173,13 @@ $siteoptionform = array(
'defaultvalue' => is_null(get_config('institutionexpirynotification')) ? '2592000' : get_config('institutionexpirynotification'),
'help' => true,
),
'institutionautosuspend' => array(
'type' => 'checkbox',
'title' => get_string('institutionautosuspend', 'admin'),
'description' => get_string('institutionautosuspenddescription', 'admin'),
'defaultvalue' => get_config('institutionautosuspend'),
'help' => true,
),
)
);
......@@ -194,7 +201,7 @@ function siteoptions_submit(Pieform $form, $values) {
$fields = array('sitename','lang','theme', 'pathtoclam',
'defaultaccountlifetime', 'defaultaccountinactiveexpire', 'defaultaccountinactivewarn',
'allowpublicviews', 'allowpublicprofiles', 'createpublicgroups', 'searchplugin',
'registration_sendweeklyupdates', 'institutionexpirynotification');
'registration_sendweeklyupdates', 'institutionexpirynotification', 'institutionautosuspend');
$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['institutionautosuspend'] = 'Auto-suspend expired institutions';
$string['institutionautosuspenddescription'] = 'If checked, expired institutions will be automatically suspended';
$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';
......
Markdown is supported
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