You are here

function views_handler_field_upload_fid::options_form in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 modules/upload/views_handler_field_upload_fid.inc \views_handler_field_upload_fid::options_form()

Default options form that provides the label widget that all fields should have.

Overrides views_handler_field_prerender_list::options_form

File

modules/upload/views_handler_field_upload_fid.inc, line 17

Class

views_handler_field_upload_fid
Field handler to provide a list of roles.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['link_to_file'] = array(
    '#title' => t('Link this field to download the file'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_file']),
  );
  $form['only_listed'] = array(
    '#title' => t('Only show "listed" file attachments'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['only_listed']),
  );
}