function nodeactivity_token_list in Activity 5.3
Same name and namespace in other branches
- 5.4 contrib/nodeactivity/nodeactivity.module \nodeactivity_token_list()
- 6 contrib/nodeactivity/nodeactivity.module \nodeactivity_token_list()
Token module integration.
File
- contrib/
nodeactivity/ nodeactivity.module, line 35
Code
function nodeactivity_token_list($type = 'all') {
if ($type == 'nodeactivity') {
$tokens['nodeactivity'] = array(
'node-id' => t('Id of the post'),
'operation' => t('The verb of the operation that took place, eg. "create", "update", "delete"'),
'author' => t('Person who authored the node'),
'node-title' => t('Title of the post'),
'node-title-link' => t('Link to the post'),
'node-type' => t('The type of post'),
'author-name' => t('The name of the author'),
);
return $tokens;
}
}