function views_handler_filter_field_list::init
Overrides views_handler_filter_many_to_one::init
File
-
modules/
field/ views_handler_filter_field_list.inc, line 18
Class
- views_handler_filter_field_list
- Filter handler which uses list-fields as options.
Code
public 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'];
}