function notifications_feed_token_list in Notifications 5
Same name and namespace in other branches
- 6 notifications_feed/notifications_feed.module \notifications_feed_token_list()
Implementation of hook_token_list(). Documents the individual tokens handled by the module.
File
- notifications_feed/
notifications_feed.module, line 217 - Subscriptions to FeedAPI feeds
Code
function notifications_feed_token_list($type = 'all') {
$tokens = array();
if ($type == 'feed' || $type == 'all') {
$tokens['feed']['feed-name'] = t('The feed name');
$tokens['feed']['feed-teaser'] = t('The feed teaser.');
$tokens['feed']['feed-url'] = t('The URL for the feed');
$tokens['feed']['feed-items-refresh'] = t('The list of refresed (new and updated) items.');
$tokens['feed']['feed-items-updated'] = t('The list of updated feed items.');
$tokens['feed']['feed-items-new'] = t('The list of new feed items');
}
return $tokens;
}