user_mail_tokens

function user_mail_tokens

user_mail_tokens(&$replacements, $data, $options)

Token callback to add unsafe tokens for user mails.

This function is used by the token_replace() call at the end of _user_mail_text() to set up some additional tokens that can be used in email messages generated by user_mail().

Parameters

$replacements: An associative array variable containing mappings from token names to values (for use with 登录查看完整内容