1 views_handler_field_user_roles.inc views_handler_field_user_roles::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/user/views/views_handler_field_user_roles.inc, line 46
Definition of views_handler_field_user_roles.

Class

views_handler_field_user_roles
Field handler to provide a list of roles.

Code

function document_self_tokens(&$tokens) {
  $tokens['[' . $this->options['id'] . '-role' . ']'] = t('The label of the role.');
  $tokens['[' . $this->options['id'] . '-name' . ']'] = t('The machine name of the role.');
}