function user_registrationpassword_mail_tokens in User registration password 6
Same name and namespace in other branches
- 8 user_registrationpassword.module \user_registrationpassword_mail_tokens()
- 7 user_registrationpassword.module \user_registrationpassword_mail_tokens()
Token callback to add unsafe tokens for user mails.
See also
user_registrationpassword_mail()
1 call to user_registrationpassword_mail_tokens()
- user_registrationpassword_mail in ./
user_registrationpassword.module - Implements hook_mail().
File
- ./
user_registrationpassword.module, line 221 - Enables password creation on registration form.
Code
function user_registrationpassword_mail_tokens($account, $language) {
$tokens = array(
'!registrationpassword-url' => user_registrationpassword_confirmation_url($account),
);
if (!empty($account->password)) {
$tokens['!password'] = $account->password;
}
return $tokens;
}