function email_confirm_mail_tokens in Email Change Confirmation 7
Generate the tokens for the confirmation emails.
1 string reference to 'email_confirm_mail_tokens'
- email_confirm_mail_text in ./
email_confirm.module - Returns a mail string for a variable name.
File
- ./
email_confirm.module, line 466 - The Email Change Confirmation module.
Code
function email_confirm_mail_tokens(&$replacements, $data, $options) {
// Add any core mail tokens.
user_mail_tokens($replacements, $data, $options);
if (isset($data['email_confirm'])) {
$replacements['[email_confirm:email_url]'] = $data['email_confirm']->url;
}
}