function realname_token_list in Real Name 6
Same name and namespace in other branches
- 5 token_realname.inc \realname_token_list()
@file Token module support for the realname module.
File
- ./
realname_token.inc, line 7 - Token module support for the realname module.
Code
function realname_token_list($type = 'all') {
$tokens = array();
switch ($type) {
case 'user':
case 'node':
$tokens[$type]['realname-node-author'] = t('The realname of node author.');
$tokens[$type]['realname-node-author-raw'] = t('The realname of node author.');
case 'all':
case 'global':
case 'comment':
$tokens[$type]['realname'] = t('The RealName for the user.');
$tokens[$type]['realname-raw'] = t('The RealName for the user.');
$tokens[$type]['realname-link'] = t('Themed username link.');
$tokens[$type]['homepage'] = t('The home page for the user.');
$tokens[$type]['realname-comment-author'] = t('The realname of comment author.');
$tokens[$type]['realname-comment-author-raw'] = t('The realname of comment author.');
return $tokens;
}
}