function user_registrationpassword_mail_tokens in User registration password 8
Same name and namespace in other branches
- 6 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()
user_registrationpassword_confirmation_url()
1 string reference to 'user_registrationpassword_mail_tokens'
- user_registrationpassword_mail in ./
user_registrationpassword.module - Implements hook_mail().
File
- ./
user_registrationpassword.module, line 341 - Enables password creation on registration form.
Code
function user_registrationpassword_mail_tokens(&$replacements, $data, $options) {
user_mail_tokens($replacements, $data, $options);
if (isset($data['user'])) {
$replacements['[user:registrationpassword-url]'] = user_registrationpassword_confirmation_url($data['user'], $options);
}
// For D7 we use the rpt module to enable emails to contain
// the user's password, so no need to add the password
// token here, people just need to install rpt.
}