You are here

function content_taxonomy_token_list in Content Taxonomy 6

Same name and namespace in other branches
  1. 5 content_taxonomy.module \content_taxonomy_token_list()
  2. 6.2 includes/content_taxonomy.token.inc \content_taxonomy_token_list()

Implementation of hook_token_list().

File

includes/content_taxonomy.token.inc, line 6

Code

function content_taxonomy_token_list($type = 'all') {
  if ($type == 'field' || $type == 'all') {
    $tokens = array();
    $tokens['content_taxonomy']['term'] = t('Name of top taxonomy term');
    $tokens['content_taxonomy']['term-raw'] = t('Unfiltered name of top taxonomy term. WARNING - raw user input.');
    $tokens['content_taxonomy']['tid'] = t('ID of top taxonomy term');
    $tokens['content_taxonomy']['terms'] = t('Names of all taxonomy terms separated by commas');
    $tokens['content_taxonomy']['terms-raw'] = t('Unfiltered names of all taxonomy terms separated by commas. WARNING - raw user input.');
    $tokens['content_taxonomy']['tids'] = t('IDs of all taxonomy terms separated by commas');
    $tokens['content_taxonomy']['vocab'] = t('Name of terms vocabulary');
    $tokens['content_taxonomy']['vid'] = t('ID of terms vocabulary');
    return $tokens;
  }
}