You are here

function recovery_pass_form_user_pass_alter in Recovery Password (Email New Password) 8

Same name and namespace in other branches
  1. 7 recovery_pass.module \recovery_pass_form_user_pass_alter()

Implements hook_form_FORM_ID_alter().

File

./recovery_pass.module, line 28
Contains module code.

Code

function recovery_pass_form_user_pass_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {

  // Overrides default submit handler for user_pass form.
  $form['#submit'] = array(
    'recovery_pass_forgot_password_submit',
  );
}