You are here

function subscriptions_taxonomy_mail_edit_tokens_list in Subscriptions 6

Implementation of hook_mail_edit_tokens_list().

Provide replacable tokens for mail_edit.

File

./subscriptions_taxonomy.module, line 342
Subscriptions to taxonomy terms.

Code

function subscriptions_taxonomy_mail_edit_tokens_list($mailkey, $options = array()) {
  $tokens = array();
  switch ($mailkey) {
    case 'node-tid':
      $tokens['!term_name'] = t('The name of the term/category/tag/forum/etc.');
      break;
  }
  if (isset($options['tokens'])) {
    $tokens += $options['tokens'];
  }
  $tokens = subscriptions_content_mail_edit_tokens_list($mailkey, array(
    'tokens' => $tokens,
  ));
  return $tokens;
}