You are here

function content_taxonomy_token_list in Content Taxonomy 5

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

Implementation of hook_token_list().

File

./content_taxonomy.module, line 256
Defines a field type for referencing a taxonomy term.

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']['tid'] = t('ID of top taxonomy term');
    $tokens['content_taxonomy']['vocab'] = t('Name of top terms vocabulary');
    $tokens['content_taxonomy']['vid'] = t('ID of top terms vocabulary');
    return $tokens;
  }
}