function favorite_nodesactivity_token_list in Activity 6
Same name and namespace in other branches
- 5.4 contrib/favorite_nodesactivity/favorite_nodesactivity.module \favorite_nodesactivity_token_list()
Token module integration. Defines available default tokens.
File
- contrib/
favorite_nodesactivity/ favorite_nodesactivity.module, line 47
Code
function favorite_nodesactivity_token_list($type = 'all') {
if ($type == 'favorite_nodesactivity') {
$tokens['favorite_nodesactivity'] = array(
'possessive' => t('Possessive pronoun indicating whose favorites list ("yours" or "theirs")'),
'favorites-link' => t("Link to the user's favorites list"),
'node-type' => t('The type of the node that was favorited'),
'node-id' => t('Id of the node that was favorited'),
'node-title' => t('Title of the node that was favorited'),
'node-link' => t('Link to the node that was favorited'),
);
return $tokens;
}
}