You are here

function i18n_user_user_cancel_url in Internationalization 7

Overrides user_pass_cancel_url(). Generates a localized URL to confirm an account cancellation request.

See also

i18n_user_user_cancel_url()

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

File

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

Code

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