You are here

public function views_handler_field_field::document_self_tokens in Views (for Drupal 7) 7.3

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 930
Definition of views_handler_field_field.

Class

views_handler_field_field
A field that displays fieldapi fields.

Code

public 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,
    ));
  }
}