function views_handler_field_data_markup::render in Data 7
Same name and namespace in other branches
- 8 views/views_handler_field_data_markup.inc \views_handler_field_data_markup::render()
- 6 views/views_handler_field_data_markup.inc \views_handler_field_data_markup::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::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, $langcode = '', FALSE);
}
}