public function views_handler_field_file_uri::render in Views (for Drupal 7) 7.3
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field_file::render
File
- modules/
system/ views_handler_field_file_uri.inc, line 39 - 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
public 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);
}