function scald_views_handler_field_data::render in Scald: Media Management made easy 7
Overrides views_handler_field::render().
Overrides views_handler_field::render
File
- includes/
scald_views_handler_field_data.inc, line 43 - Provides a field showing a part of the data-bag on an atom
Class
- scald_views_handler_field_data
- @file Provides a field showing a part of the data-bag on an atom
Code
function render($values) {
$data = unserialize($values->{$this->field_alias});
$content = NULL;
if (!empty($data[$this->options['data_key']])) {
$output = (string) $data[$this->options['data_key']];
$content = array(
'#markup' => $this->options['plain'] ? check_plain($output) : $output,
);
}
return $content;
}