function token_formatters_token_info in Token formatters 7
Implements hook_token_info().
File
- ./
token_formatters.tokens.inc, line 6
Code
function token_formatters_token_info() {
$info['types']['entity'] = array(
'name' => t('Entity'),
'description' => t('Tokens related to generic entities.'),
);
$info['tokens']['entity']['id'] = array(
'name' => t('ID'),
'description' => t('The ID of the entity'),
);
$info['tokens']['entity']['label'] = array(
'name' => t('Label'),
'description' => t('The label of the entity.'),
);
$info['tokens']['entity']['url'] = array(
'name' => t('URL'),
'description' => t('The URL of the entity.'),
'type' => 'url',
);
return $info;
}