You are here

function views_handler_field_data_markup::render in Data 6

Same name and namespace in other branches
  1. 8 views/views_handler_field_data_markup.inc \views_handler_field_data_markup::render()
  2. 7 views/views_handler_field_data_markup.inc \views_handler_field_data_markup::render()

File

views/views_handler_field_data_markup.inc, line 30

Class

views_handler_field_data_markup
A handler to run a field through check_markup.

Code

function render($values) {
  $value = $values->{$this->field_alias};
  if ($value) {
    $format = is_numeric($this->options['format']) ? $this->options['format'] : variable_get('filter_default_format', 1);
    return check_markup($value, $format, FALSE);
  }
}