Commit e75c70ae authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Confirmation before removing an institution from the edit user page

parent a51e7b1d
......@@ -26,6 +26,7 @@
define('INTERNAL', 1);
define('INSTITUTIONALADMIN', 1);
define('MENUITEM', 'configusers/usersearch');
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
define('TITLE', get_string('accountsettings', 'admin'));
define('SECTION_PLUGINTYPE', 'core');
......@@ -252,6 +253,7 @@ foreach ($user->get('institutions') as $i) {
$elements[$i->institution.'_remove'] = array(
'type' => 'submit',
'value' => get_string('remove'),
'confirm' => get_string('confirmremoveuserfrominstitution', 'admin'),
);
}
......
......@@ -262,6 +262,7 @@ $string['unsuspenduser'] = 'Unsuspend User';
$string['thisuserissuspended'] = 'This user has been suspended';
$string['suspendedby'] = 'This user has been suspended by %s';
$string['filequota'] = 'File quota (MB)';
$string['confirmremoveuserfrominstitution'] = 'Are you sure you want to remove the user from this institution?';
// Institutions
$string['admininstitutions'] = 'Admininster Institutions';
......
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