1 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

core/modules/field/views/views_handler_field_field.inc, line 935
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));
  }
}