Same name and namespace in other branches
  1. 6.x-3.x handlers/views_handler_field.inc \views_handler_field::add_self_tokens()

Add any special tokens this field might use for itself.

This method is intended to be overridden by items that generate fields as a list. For example, the field that displays all terms on a node might have tokens for the tid and the term.

By convention, tokens should follow the format of [token-subtoken] where token is the field ID and subtoken is the field. If the field ID is terms, then the tokens might be [terms-tid] and [terms-name].

1 call to views_handler_field::add_self_tokens()
views_handler_field::get_render_tokens in handlers/views_handler_field.inc
Get the 'render' tokens to use for advanced rendering.
4 methods override views_handler_field::add_self_tokens()
views_handler_field_field::add_self_tokens in modules/field/views_handler_field_field.inc
Add any special tokens this field might use for itself.
views_handler_field_profile_list::add_self_tokens in modules/profile/views_handler_field_profile_list.inc
Add any special tokens this field might use for itself.
views_handler_field_term_node_tid::add_self_tokens in modules/taxonomy/views_handler_field_term_node_tid.inc
Add any special tokens this field might use for itself.
views_handler_field_user_roles::add_self_tokens in modules/user/views_handler_field_user_roles.inc
Add any special tokens this field might use for itself.

File

handlers/views_handler_field.inc, line 1574
Definition of views_handler_field.

Class

views_handler_field
Base field handler that has no options and renders an unformatted field.

Code

public function add_self_tokens(&$tokens, $item) {
}