1 views_handler_filter_in_operator.inc views_handler_filter_in_operator::op_simple()

File

core/modules/views/handlers/views_handler_filter_in_operator.inc, line 376
Definition of views_handler_filter_in_operator.

Class

views_handler_filter_in_operator
Simple filter to handle matching of multiple options selectable via checkboxes

Code

function op_simple() {
  if (empty($this->value)) {
    return;
  }
  $this->ensure_my_table();

  // We use array_values() because the checkboxes keep keys and that can cause
  // array addition problems.
  $this->query->add_where($this->options['group'], "$this->table_alias.$this->real_field", array_values($this->value), $this->operator);
}