function hs_taxonomy_token_list in Hierarchical Select 5.3
Same name and namespace in other branches
- 6.3 modules/hs_taxonomy.module \hs_taxonomy_token_list()
Implementation of hook_token_list().
File
- modules/
hs_taxonomy.module, line 470 - Implementation of the Hierarchical Select API for the Taxonomy module.
Code
function hs_taxonomy_token_list($type = 'all') {
if ($type == 'node' || $type == 'all') {
$tokens['node']['save-lineage-termpath'] = t('Only use when you have enabled the "save lineage" setting of Hierarchical Select. Will show the term\'s parent terms separated by /.');
$tokens['node']['save-lineage-termpath-raw'] = t('As [save-linage-termpath]. WARNING - raw user input.');
$tokens['node']['save-lineage-termpath:vid'] = t('Only has output when terms are present for the vocabulary with the specified vid. Only use when you have enabled the "save lineage" setting of Hierarchical Select. Will show the term\'s parent terms separated by /.');
$tokens['node']['save-lineage-termpath-raw:vid'] = t('Only has output when terms are present for the vocabulary with the specified vid. As [save-linage-termpath]. WARNING - raw user input.');
return $tokens;
}
}