You are here

function taxonomy_menu_token_list in Taxonomy menu 5

Implementation of hook_token_list()

File

./taxonomy_menu_pathauto.inc, line 115

Code

function taxonomy_menu_token_list($type = 'all') {
  if ($type == 'taxonomy_menu' || $type == 'all') {
    $tokens['taxonomy_menu']['tax-menu'] = t("The first item on the menu as defined <a href='@tax_menu_settings'>here</a>.", array(
      '@tax_menu_settings' => url('admin/settings/taxonomy_menu'),
    ));
    $tokens['taxonomy_menu']['vid'] = t("The id number of the category's parent vocabulary.");
    $tokens['taxonomy_menu']['vocab'] = t("The vocabulary that the page's first category belongs to.");
    $tokens['taxonomy_menu']['cat'] = t('The name of the category.');
    $tokens['taxonomy_menu']['tid'] = t('The id number of the category.');
    $tokens['taxonomy_menu']['vocab-raw'] = t("The unfiltered vocabulary that the page's first category belongs to. WARNING - raw user input.");
    $tokens['taxonomy_menu']['cat-raw'] = t('The unfiltered name of the category. WARNING - raw user input.');
    return $tokens;
  }
}