public function biblio_handler_field_markup::render in Bibliography Module 7
Same name and namespace in other branches
- 7.2 views/biblio_handler_field_markup.inc \biblio_handler_field_markup::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- views/
biblio_handler_field_markup.inc, line 22
Class
Code
public function render($values) {
$value = $this
->get_value($values);
$formats = $this
->get_value($values, 'biblio_formats');
$format = filter_default_format();
if (!empty($formats)) {
$formats = unserialize($formats);
$format = isset($formats[$this->field]) ? $formats[$this->field] : $format;
}
if ($value) {
$value = str_replace('<!--break-->', '', $value);
return check_markup($value, $format, '');
}
}