function views_handler_field_field::document_self_tokens

3.x views_handler_field_field.inc views_handler_field_field::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

modules/field/views_handler_field_field.inc, line 880
Definition of views_handler_field_field.

Class

views_handler_field_field
A field that displays fieldapi fields.

Code

function document_self_tokens(&$tokens) {
  $field = $this->field_info;
  foreach ($field['columns'] as $id => $column) {
    $tokens['[' . $this->options['id'] . '-' . $id . ']'] = t('Raw @column', array('@column' => $id));
  }
}