You are here

function i18n_user_user_pass_reset_url in Internationalization 7

Overrides user_pass_reset_url(). Generates a unique and localized URL for a user to login and reset their password.

See also

user_pass_reset_url().

1 call to i18n_user_user_pass_reset_url()
i18n_user_user_mail_tokens in i18n_user/i18n_user.module
Overrides user_mail_tokens().

File

i18n_user/i18n_user.module, line 62
User mail translation module.

Code

function i18n_user_user_pass_reset_url($account) {
  $timestamp = REQUEST_TIME;
  return url("user/reset/{$account->uid}/{$timestamp}/" . user_pass_rehash($account->pass, $timestamp, $account->login, $account->uid), array(
    'absolute' => TRUE,
    'language' => i18n_language($account->language),
  ));
}