Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
9b15f640
Commit
9b15f640
authored
Jun 26, 2011
by
Angie Byron
Browse files
Issue
#1166388
by pillarsdotnet: Fixed Regression: user_mail_tokens() needs docs.
parent
8cf8f223
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/user/user.module
View file @
9b15f640
...
...
@@ -2709,8 +2709,21 @@ function _user_mail_text($key, $language = NULL, $variables = array(), $replace
/**
* Token callback to add unsafe tokens for user mails.
*
* @see _user_mail_text()
* @see user_mail()
* 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().
*
* @param $replacements
* An associative array variable containing mappings from token names to
* values (for use with strtr()).
* @param $data
* An associative array of token replacement values. If the 'user' element
* exists, it must contain a user account object with the following
* properties:
* - login: The account login name.
* - pass: The hashed account login password.
* @param $options
* Unused parameter required by the token_replace() function.
*/
function
user_mail_tokens
(
&
$replacements
,
$data
,
$options
)
{
if
(
isset
(
$data
[
'user'
]))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment