You are here

function views_handler_field_file_link_usage::options_form in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 7.3 views/views_handler_field_file_link_usage.inc \views_handler_field_file_link_usage::options_form()

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

Overrides views_handler_field_file_link::options_form

File

views/views_handler_field_file_link_usage.inc, line 27
Definition of views_handler_field_file_link_usage.

Class

views_handler_field_file_link_usage
Field handler to present a link to view the usage of a file.

Code

function options_form(&$form, &$form_state) {
  $form['count_entities_once'] = array(
    '#type' => 'checkbox',
    '#title' => t('Count each unique entity once'),
    '#description' => t('Files can be used multiple times for an entity, especially when an entity is revisionable.'),
    '#default_value' => !empty($this->options['count_entities_once']),
  );
  parent::options_form($form, $form_state);
}