1 views_handler_field_file_rendered.inc | views_handler_field_file_rendered::render($values) |
Render the field.
Parameters
$values: The values retrieved from the database.
Overrides views_handler_field::render
File
- core/
modules/ file/ views/ views_handler_field_file_rendered.inc, line 40 - Definition of views_handler_field_file_rendered.
Class
- views_handler_field_file_rendered
- Field handler to render a file with a view mode using file_view_file().
Code
function render($values) {
if ($file = $this->get_value($values)) {
return file_view_file($file, $this->options['file_view_mode']);
}
}