user_pass_submit
modules/user/user.pages.inc, строка 66
- Версии
- 5
user_pass_submit(
$form_id,$form_values)- 6
user_pass_submit($form, &$form_state)
Код
<?php
function user_pass_submit($form, &$form_state) {
global $language;
$account = $form_state['values']['account'];
// Mail one time login URL and instructions using current language.
_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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии