You are here

public function views_handler_field_file::options_form 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::options_form()
  2. 6.2 modules/system/views_handler_field_file.inc \views_handler_field_file::options_form()

Provide link to file option.

Overrides views_handler_field::options_form

2 calls to views_handler_field_file::options_form()
views_handler_field_file_filemime::options_form in modules/system/views_handler_field_file_filemime.inc
Provide link to file option.
views_handler_field_file_uri::options_form in modules/system/views_handler_field_file_uri.inc
Provide link to file option.
2 methods override views_handler_field_file::options_form()
views_handler_field_file_filemime::options_form in modules/system/views_handler_field_file_filemime.inc
Provide link to file option.
views_handler_field_file_uri::options_form in modules/system/views_handler_field_file_uri.inc
Provide link to file option.

File

modules/system/views_handler_field_file.inc, line 37
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 options_form(&$form, &$form_state) {
  $form['link_to_file'] = array(
    '#title' => t('Link this field to download the file'),
    '#description' => t("Enable to override this field's links."),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_file']),
  );
  parent::options_form($form, $form_state);
}