You are here

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

Same name and namespace in other branches
  1. 6.3 includes/handlers.inc \views_many_to_one_helper::options_form()
  2. 6.2 includes/handlers.inc \views_many_to_one_helper::options_form()

File

includes/handlers.inc, line 836
Defines the various handler objects to help build and display views.

Class

views_many_to_one_helper
This many to one helper object is used on both arguments and filters.

Code

public function options_form(&$form, &$form_state) {
  $form['reduce_duplicates'] = array(
    '#type' => 'checkbox',
    '#title' => t('Reduce duplicates'),
    '#description' => t('This filter can cause items that have more than one of the selected options to appear as duplicate results. If this filter causes duplicate results to occur, this checkbox can reduce those duplicates; however, the more terms it has to search for, the less performant the query will be, so use this with caution. Shouldn\'t be set on single-value fields, as it may cause values to disappear from display, if used on an incompatible field.'),
    '#default_value' => !empty($this->handler->options['reduce_duplicates']),
    '#weight' => 4,
  );
}