function commentactivity_token_list in Activity 5.3
Same name and namespace in other branches
- 5.4 contrib/commentactivity/commentactivity.module \commentactivity_token_list()
- 6 contrib/commentactivity/commentactivity.module \commentactivity_token_list()
Token module integration.
File
- contrib/
commentactivity/ commentactivity.module, line 47
Code
function commentactivity_token_list($type = 'all') {
if ($type == 'commentactivity') {
$tokens['commentactivity'] = array(
'author' => t('Person who authored the comment'),
'subject' => t('The subject of the comment'),
'parent-node' => t('Link to the parent node'),
'parent-node-author' => t('Person who authored the parent node'),
'parent-node-type' => t('The type of the parent node'),
'parent-comment-author' => t('Person who authored the parent comment'),
'parent-comment' => t('The parent comment'),
);
return $tokens;
}
}