1 views_handler_filter_field_list.inc views_handler_filter_field_list::init(&$view, &$options)

Provide some extra help to get the operator/value easier to use.

This likely has to be overridden by filters which are more complex than simple operator/value.

Overrides views_handler_filter_many_to_one::init

File

core/modules/field/views/views_handler_filter_field_list.inc, line 15
Definition of views_handler_filter_field_list.

Class

views_handler_filter_field_list
Filter handler which uses list-fields as options.

Code

function init(&$view, &$options) {
  parent::init($view, $options);
  // Migrate the settings from the old filter_in_operator values to filter_many_to_one.
  if ($this->options['operator'] == 'in') {
    $this->options['operator'] = 'or';
  }
  if ($this->options['operator'] == 'not in') {
    $this->options['operator'] = 'not';
  }
  $this->operator = $this->options['operator'];
}