You are here

function views_handler_field_markup::render in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_field_markup.inc \views_handler_field_markup::render()
  2. 7.3 handlers/views_handler_field_markup.inc \views_handler_field_markup::render()

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field::render

File

handlers/views_handler_field_markup.inc, line 28

Class

views_handler_field_markup
A handler to run a field through check_markup, using a companion format field.

Code

function render($values) {
  $value = $values->{$this->field_alias};
  $format = is_numeric($this->format) ? $this->format : $values->{$this->aliases['format']};
  if ($value) {
    $value = str_replace('<!--break-->', '', $value);
    return check_markup($value, $format, FALSE);
  }
}