function token_entity_info in Examples for Developers 6
Related topics
1 call to token_entity_info()
- token_example_example_form in token_example/
token_example.module - Form builder; display lists of supported token entities and text to tokenize.
File
- token_example/
token_example.module, line 133 - The Token API module.
Code
function token_entity_info() {
$info['node'] = array(
'label' => t('Content'),
);
$info['comment'] = array(
'label' => t('Comment'),
);
$info['user'] = array(
'label' => t('User'),
);
return $info;
}