function taxonomy_menu_token_values in Taxonomy menu 5
Implementation of hook_token_values()
File
- ./
taxonomy_menu_pathauto.inc, line 91
Code
function taxonomy_menu_token_values($type, $object = NULL, $options = array()) {
$values = array();
switch ($type) {
case 'taxonomy_menu':
$category = $object;
$vid = $category->vid;
$vocabulary = taxonomy_get_vocabulary($vid);
$values['tax-menu'] = variable_get('taxonomy_menu_display_page', 'category');
$values['vid'] = $vid;
$values['vocab'] = check_plain($vocabulary->name);
$values['cat'] = check_plain($category->name);
$values['tid'] = $category->tid;
$values['vocab-raw'] = $vocabulary->name;
$values['cat-raw'] = $category->name;
break;
}
return $values;
}