1 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()

File

core/modules/taxonomy/views/views_handler_field_term_node_tid.inc, line 131
Definition of views_handler_field_term_node_tid.

Class

views_handler_field_term_node_tid
Field handler to display all taxonomy terms of a node.

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'] . '-vocabulary-machine-name]'] = t('The machine name for the vocabulary the term belongs to.');
  $tokens['[' . $this->options['id'] . '-vocabulary]'] = t('The label for the vocabulary the term belongs to.');
}