function notifications_token_list in Notifications 6
Same name and namespace in other branches
- 5 notifications.module \notifications_token_list()
- 6.4 notifications.module \notifications_token_list()
- 6.2 notifications.module \notifications_token_list()
- 6.3 notifications.module \notifications_token_list()
Implementation of hook_token_list(). Documents the individual tokens handled by the module.
File
- ./
notifications.module, line 1179 - Notifications module
Code
function notifications_token_list($type = 'all') {
$tokens = array();
if ($type == 'user' || $type == 'all') {
$tokens['user']['subscriptions-manage'] = t('The url for the current user to manage subscriptions.');
$tokens['user']['unsubscribe-url-global'] = t('The url to allow a user to delete all their subscriptions.');
}
if ($type == 'subscription' || $type == 'all') {
$tokens['subscription']['unsubscribe-url'] = t('The url for disabling a specific subscription.');
}
if ($type == 'event' || $type == 'all') {
$tokens['event']['event-list'] = t('List of events for message digests');
$tokens['event']['event-detail'] = t('Detailed information for event');
}
return $tokens;
}