You are here

function userpoints_views_handler_field_category::document_self_tokens in User Points 7.2

Same name and namespace in other branches
  1. 6 views/userpoints_views_handler_field_category.inc \userpoints_views_handler_field_category::document_self_tokens()
  2. 7 views/userpoints_views_handler_field_category.inc \userpoints_views_handler_field_category::document_self_tokens()

Document any special tokens this field might use for itself.

Overrides views_handler_field::document_self_tokens

See also

add_self_tokens()

File

views/userpoints_views_handler_field_category.inc, line 39
Views field handler for the Userpoints category.

Class

userpoints_views_handler_field_category
Field handler for categories.

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.');
}