function simplenews_token_list in Simplenews 6.2
Implementation of hook_token_list().
File
- ./
simplenews.module, line 2015 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function simplenews_token_list($type = 'all') {
$tokens = array();
switch ($type) {
case 'simplenews_subscription':
$tokens['simplenews']['simplenews-subscribe-url'] = t('URL of the subscribe confirmation page');
$tokens['simplenews']['simplenews-unsubscribe-url'] = t('URL of the unsubscribe confirmation page');
$tokens['simplenews']['simplenews-receiver-mail'] = t('Email address of the newsletter receiver');
$tokens['simplenews']['simplenews-from-name'] = t('From name');
$tokens['simplenews']['simplenews-from-mail'] = t('From email address');
$tokens['simplenews']['simplenews-newsletters-name'] = t('The name of the newsletter series');
$tokens['simplenews']['simplenews-newsletters-url'] = t('URL of the taxonomy page listing the issues of this newsletter series');
$tokens['simplenews']['simplenews-subscriptions-url'] = t('URL of the manage subscriptions page');
break;
case 'all':
case 'simplenews':
$tokens['simplenews']['simplenews-subscribe-url'] = t('URL of the subscribe confirmation page.');
$tokens['simplenews']['simplenews-unsubscribe-url'] = t('URL of the unsubscribe confirmation page');
$tokens['simplenews']['simplenews-receiver-name'] = t('Username of the newsletter receiver or anonymous user name.');
$tokens['simplenews']['simplenews-receiver-mail'] = t('Email address of the newsletter receiver');
$tokens['simplenews']['simplenews-from-name'] = t('From name');
$tokens['simplenews']['simplenews-from-mail'] = t('Email address from which the newsletter is sent');
$tokens['simplenews']['simplenews-newsletter-url'] = t('URL of this newsletter issue');
$tokens['simplenews']['simplenews-newsletters-name'] = t('The name of the newsletter series');
$tokens['simplenews']['simplenews-newsletters-url'] = t('URL of the taxonomy page listing the issues of this newsletter series');
$tokens['simplenews']['simplenews-subscriptions-url'] = t('URL of the manage subscriptions page');
break;
}
return $tokens;
}