function _advuser_get_variables in Advanced User 5
Same name and namespace in other branches
- 5.2 advuser.module \_advuser_get_variables()
- 6.2 advuser.module \_advuser_get_variables()
Get a list of substitution variables for the user account
Parameters
$user the user account:
Return value
An associative array of substitution variables
2 calls to _advuser_get_variables()
- advuser_user_insert in ./
advuser.module - Handle user insertion (new users) TODO: DRY (don't repeat yourself!)
- advuser_user_update in ./
advuser.module - Handle user edit TODO: DRY (don't repeat yourself!)
File
- ./
advuser.module, line 784
Code
function _advuser_get_variables(&$user) {
$variables = array(
'%username' => $user->name,
'%site' => variable_get("site_name", "drupal"),
'%uri' => url('user/' . $user->uid, NULL, NULL, TRUE),
'%user_email' => $user->mail,
/* FUTURE: '%user_signature' => $user->signature, */
'%google_user' => "http:/www.google.com/search?q=%22{$user->mail}%22",
'%yahoo_user' => "http://search.yahoo.com/search/?p=%22{$user->mail}%22",
);
return $variables;
}