You are here

function views_handler_field::render_altered 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::render_altered()
  2. 7.3 handlers/views_handler_field.inc \views_handler_field::render_altered()

Render this field as altered text, from a fieldset set by the user.

2 calls to views_handler_field::render_altered()
views_handler_field::render_text in handlers/views_handler_field.inc
Perform an advanced text render for the item.
views_handler_field::tokenize_value in handlers/views_handler_field.inc
Replace a value with tokens from the last field.

File

handlers/views_handler_field.inc, line 900

Class

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

Code

function render_altered($alter, $tokens) {

  // Filter this right away as our substitutions are already sanitized.
  $value = filter_xss_admin($alter['text']);
  $value = strtr($value, $tokens);
  return $value;
}