You are here

function views_handler_field::add_self_tokens in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 handlers/views_handler_field.inc \views_handler_field::add_self_tokens()
  2. 7.3 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_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_upload_fid::add_self_tokens in modules/upload/views_handler_field_upload_fid.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 1106

Class

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

Code

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