function mass_pwreset_submit in Mass Password Reset 7
Form submission handler for mass_pwreset_form().
Reset paswords and notify users.
1 string reference to 'mass_pwreset_submit'
- mass_pwreset_form in ./
mass_pwreset.admin.inc - Form constructor for the mass password reset form.
File
- ./
mass_pwreset.admin.inc, line 51 - Admin page callbacks for the mass_pwreset module.
Code
function mass_pwreset_submit($form, &$form_state) {
$roles = array_filter($form_state['values']['choose_roles']);
$uids = mass_pwreset_get_uids_by_role($roles);
if ($form_state['values']['include_admin_user'] != '1') {
unset($uids[1]);
}
$uids = array_values($uids);
$data = array(
'uids' => $uids,
'notify_users' => $form_state['values']['notify_users'],
);
mass_pwreset_multiple_reset($data);
}