function realname_token_info_alter in Real Name 7
Implements hook_token_info_alter().
File
- ./
realname.tokens.inc, line 23 - Builds placeholder replacement tokens for realname.
Code
function realname_token_info_alter(&$info) {
// Since the [user:name] token uses format_username(), its meta-data should
// be altered to reflect that it will be the real name.
$info['tokens']['user']['name']['name'] = t('Real name');
$info['tokens']['user']['name']['description'] = t('The real name of the user account.');
}