function recovery_pass_form_user_pass_alter in Recovery Password (Email New Password) 7
Same name and namespace in other branches
- 8 recovery_pass.module \recovery_pass_form_user_pass_alter()
Implements hook_form_FORM_ID_alter().
File
- ./
recovery_pass.module, line 52 - Alters default Drupal password recovery process by overriding default submit.
Code
function recovery_pass_form_user_pass_alter(&$form, &$form_state, $form_id) {
// Overrides default submit handler for user_pass form.
$form['#submit'] = array_diff($form['#submit'], array(
'user_pass_submit',
));
array_unshift($form['#submit'], 'recovery_pass_forgot_password_submit');
}