function advuser_token_info in Advanced User 7.3
Implementation of hook_token_info().
File
- ./
advuser.module, line 893 - Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.
Code
function advuser_token_info() {
$tokens = array();
$this_module = t('Advanced User');
$tokens['user']['status'] = array(
'name' => t('Status'),
'description' => t("The user's status (either '!active' or '!blocked').", array(
'!active' => t('Active'),
'!blocked' => t('Blocked'),
)),
);
$tokens['user']['theme'] = array(
'name' => t('Theme'),
'description' => t("The user's theme (or '!default' if not defined).", array(
'!default' => t('DEFAULT'),
)),
);
$tokens['user']['language'] = array(
'name' => t('Language'),
'description' => t("The user's language (or '!default' if not defined).", array(
'!default' => t('DEFAULT'),
)),
);
$tokens['user']['timezone'] = array(
'name' => t('Timezone'),
'description' => t("The user's timezone (or '0' if not defined)."),
);
$tokens['user']['signature'] = array(
'name' => t('Signature'),
'description' => t("The user's signature."),
);
$tokens['user']['signature:raw'] = array(
'name' => t('Signature (raw)'),
'description' => t("The unfiltered user's signature. WARNING - raw user input."),
);
$tokens['user']['name:raw'] = array(
'name' => t('Name (raw)'),
'description' => t("The unfiltered user's name. WARNING - raw user input."),
);
return array(
'tokens' => $tokens,
);
}