function realname_token_list in Real Name 5
Same name and namespace in other branches
- 6 realname_token.inc \realname_token_list()
@file Token module support for the realname module.
File
- ./token_realname.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':
    case 'all':
    case 'global':
    case 'comment':
      $tokens[$type]['realname'] = t('The RealName for the user.');
      $tokens[$type]['realname-link'] = t('Themed username link.');
      $tokens[$type]['homepage'] = t('The home page for the user.');
      return $tokens;
  }
}