You are here

function views_handler_file_filename_download in Views (for Drupal 7) 5

File

modules/views_upload.inc, line 154

Code

function views_handler_file_filename_download($fieldinfo, $fielddata, $value, $data) {
  $link_text = $fielddata['options'] ? $fielddata['options'] : $value;
  return $value ? l($link_text, check_url(file_create_url($data->files_filepath))) : '';
}