Index: token_taxonomy.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/token/token_taxonomy.inc,v retrieving revision 1.5 diff -u -r1.5 token_taxonomy.inc --- token_taxonomy.inc 7 Nov 2007 19:16:44 -0000 1.5 +++ token_taxonomy.inc 2 Jul 2009 15:47:49 -0000 @@ -16,8 +16,10 @@ $values['vocab'] = check_plain($vocabulary->name); $values['cat'] = check_plain($category->name); $values['tid'] = $category->tid; + $values['cat-desc'] = check_plain($category->description); $values['vocab-raw'] = $vocabulary->name; $values['cat-raw'] = $category->name; + $values['cat-desc-raw'] = $category->description; break; } @@ -33,8 +35,10 @@ $tokens['taxonomy']['vocab'] = t("The vocabulary that the page's first category belongs to."); $tokens['taxonomy']['cat'] = t('The name of the category.'); $tokens['taxonomy']['tid'] = t('The id number of the category.'); + $tokens['taxonomy']['cat-desc'] = t("The description of the category."); $tokens['taxonomy']['vocab-raw'] = t("The unfiltered vocabulary that the page's first category belongs to. WARNING - raw user input."); $tokens['taxonomy']['cat-raw'] = t('The unfiltered name of the category. WARNING - raw user input.'); + $tokens['taxonomy']['cat-desc-raw'] = t('The unfiltered description of the category. WARNING - raw user input.'); return $tokens; } }