1.20.x views_handler_field.inc views_handler_field::render_altered($alter, $tokens)

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

File

modules/views/handlers/views_handler_field.inc, line 1271
@todo.

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;
}