You are here

public function views_handler_field_file::render in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 modules/system/views_handler_field_file.inc \views_handler_field_file::render()
  2. 6.2 modules/system/views_handler_field_file.inc \views_handler_field_file::render()

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

2 methods override views_handler_field_file::render()
views_handler_field_file_filemime::render in modules/system/views_handler_field_file_filemime.inc
Render the field.
views_handler_field_file_uri::render in modules/system/views_handler_field_file_uri.inc
Render the field.

File

modules/system/views_handler_field_file.inc, line 64
Definition of views_handler_field_file.

Class

views_handler_field_file
Field handler to provide simple renderer that allows linking to a file.

Code

public function render($values) {
  $value = $this
    ->get_value($values);
  return $this
    ->render_link($this
    ->sanitize_value($value), $values);
}