function views_handler_field_term_node_tid::document_self_tokens
3.x views_handler_field_term_node_tid.inc | views_handler_field_term_node_tid::document_self_tokens(&$tokens) |
2.x views_handler_field_term_node_tid.inc | views_handler_field_term_node_tid::document_self_tokens(&$tokens) |
Document any special tokens this field might use for itself.
Overrides views_handler_field::document_self_tokens
See also
add_self_tokens() for details.
File
- modules/
taxonomy/ views_handler_field_term_node_tid.inc, line 105
Class
- views_handler_field_term_node_tid
- Field handler for terms.
Code
function document_self_tokens(&$tokens) {
$tokens['[' . $this->options['id'] . '-tid' . ']'] = t('The taxonomy term ID for the term.');
$tokens['[' . $this->options['id'] . '-name' . ']'] = t('The taxonomy term name for the term.');
$tokens['[' . $this->options['id'] . '-vid' . ']'] = t('The vocabulary ID for the vocabulary the term belongs to.');
$tokens['[' . $this->options['id'] . '-vocabulary' . ']'] = t('The name for the vocabulary the term belongs to.');
}