user_pass_submit
function user_pass_submit
user_pass_submit($form, &$form_state)
Form submission handler for user_pass().
See also
File
- modules/user/user.pages.inc, line 91
- User page callback file for the user module.
Code
function user_pass_submit($form, &$form_state) { global $language; $account = $form_state['values']['account']; // Mail one time login URL and instructions using current language. $mail = _user_mail_notify('password_reset', $account, $language); if (!empty($mail)) { watchdog('user', 'Password reset instructions mailed to %name at %email.', array('%name' => $account->name, '%email' => $account->mail)); drupal_set_message(t('Further instructions have been sent to your e-mail address.')); } $form_state['redirect'] = 'user'; return; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.pages.inc/function/user_pass_submit/7.x