function i18n_user_user_mail_tokens in Internationalization 7
Overrides user_mail_tokens().
See also
i18n_user_user_tokens_alter()
1 string reference to 'i18n_user_user_mail_tokens'
- i18n_user_mail_alter in i18n_user/
i18n_user.module - Implements hook_mail_alter().
File
- i18n_user/
i18n_user.module, line 49 - User mail translation module.
Code
function i18n_user_user_mail_tokens(&$replacements, $data, $options) {
if (isset($data['user'])) {
$replacements['[user:one-time-login-url]'] = i18n_user_user_pass_reset_url($data['user']);
$replacements['[user:cancel-url]'] = i18n_user_user_cancel_url($data['user']);
}
}