public function views_handler_field_markup::render in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 handlers/views_handler_field_markup.inc \views_handler_field_markup::render()
- 6.2 handlers/views_handler_field_markup.inc \views_handler_field_markup::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- handlers/
views_handler_field_markup.inc, line 38 - Definition of views_handler_field_markup.
Class
- views_handler_field_markup
- A handler to run a field through check_markup, using a companion format field.
Code
public function render($values) {
$value = $this
->get_value($values);
if (is_array($this->format)) {
$format = $this
->get_value($values, 'format');
}
else {
$format = $this->format;
}
if ($value) {
$value = str_replace('<!--break-->', '', $value);
return check_markup($value, $format, '');
}
}