function SarniaViewsHandlerField::render in Sarnia 7
Fallback method to render the field.
In general this should not be called anymore!
Parameters
$values: The values retrieved from the database.
Overrides views_handler_field::render
File
- handlers/
handler_field.inc, line 255
Class
- SarniaViewsHandlerField
- Field handler for displaying Solr fields in Views.
Code
function render($values) {
$output = '';
$value = $this
->get_value($values);
if (is_array($value)) {
$value = array_map(array(
$this,
'sanitize_value',
), $value);
$output = implode(' ', $value);
}
else {
$output = $this
->sanitize_value($value);
}
return $output;
}