function flagactivity_token_list in Activity 6
Same name and namespace in other branches
- 5.4 contrib/flagactivity/flagactivity.module \flagactivity_token_list()
Token module integration. Defines available default tokens.
File
- contrib/
flagactivity/ flagactivity.module, line 47
Code
function flagactivity_token_list($type = 'all') {
if ($type == 'flagactivity') {
$tokens['flagactivity'] = array(
'content-type' => t('The content type that was flagged (node, comment or user)'),
'content-id' => t('Id of the content that was flagged'),
'content-title' => t('Title of the content that was flagged (node or comment)'),
'content-link' => t('Link to the content that was flagged'),
'node-type' => t('The type of the node that was flagged'),
);
return $tokens;
}
}