function user_pass_submit
Same name and namespace in other branches
- 7.x drupal-7.x/modules/user/user.pages.inc \user_pass_submit()
Archivo
- drupal-6.x/modules/user/user.pages.inc, line 68
- User page callback file for the user module.
Código
function user_pass_submit($form, &$form_state) {
global $language;
$account = $form_state['values']['account'];
_user_mail_notify('password_reset', $account, $language);
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;
}