summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-06-26 23:14:18 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-06-26 23:14:18 -0700
commit75c8f57002832590c71465289d6b8ec4ed60a7b8 (patch)
tree475cd846bbf1be0ee6ef029921ef47d010e98529 /modules/user/user.module
parent2ecc273c60f3b625fe3b44005813e73eba5ea57a (diff)
downloadbrdo-75c8f57002832590c71465289d6b8ec4ed60a7b8.tar.gz
brdo-75c8f57002832590c71465289d6b8ec4ed60a7b8.tar.bz2
Issue #1166388 by pillarsdotnet: Fixed Regression: user_mail_tokens() needs docs.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module17
1 files changed, 15 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 1920789bf..84430b2f7 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -2709,8 +2709,21 @@ Your account on [site:name] has been canceled.
/**
* 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'])) {