MDL-19608 - adding bulk user action to force password change, credit to Iñaki Arenaza for the patch

This commit is contained in:
Anthony Borrow
2009-11-16 17:16:03 +00:00
parent bfeaa89501
commit 8f6ba17fcf
4 changed files with 59 additions and 0 deletions
+3
View File
@@ -27,6 +27,9 @@ class user_bulk_action_form extends moodleform {
if (has_capability('moodle/role:assign', $syscontext)){
$actions[6] = get_string('enrolmultipleusers', 'admin');
}
if (has_capability('moodle/user:update', $syscontext)) {
$actions[7] = get_string('forcepasswordchange');
}
$objs = array();
$objs[] =& $mform->createElement('select', 'action', null, $actions);
$objs[] =& $mform->createElement('submit', 'doaction', get_string('go'));