function views_handler_field_file_uri::render
3.x views_handler_field_file_uri.inc | views_handler_field_file_uri::render($values) |
Render the field.
Parameters
$values: The values retrieved from the database.
Overrides views_handler_field_file::render
File
- modules/
system/ views_handler_field_file_uri.inc, line 28 - Definition of views_handler_field_file_uri.
Class
- views_handler_field_file_uri
- Field handler to add rendering file paths as file URLs instead of as internal file URIs.
Code
function render($values) {
$data = $values->{$this->field_alias};
if (!empty($this->options['file_download_path']) && $data !== NULL && $data !== '') {
$data = file_create_url($data);
}
return $this->render_link($data, $values);
}