You are here

public function views_handler_field_file_uri::options_form in Views (for Drupal 7) 7.3

Provide link to file option.

Overrides views_handler_field_file::options_form

File

modules/system/views_handler_field_file_uri.inc, line 26
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 options_form(&$form, &$form_state) {
  $form['file_download_path'] = array(
    '#title' => t('Display download path instead of file storage URI'),
    '#description' => t('This will provide the full download URL rather than the internal filestream address.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['file_download_path']),
  );
  parent::options_form($form, $form_state);
}