You are here

function efq_views_handler_filter_field_in_operator::op_simple in EntityFieldQuery Views Backend 7

Overrides views_handler_filter_in_operator::op_simple

File

handlers/efq_views_handler_filter_field_in_operator.inc, line 25

Class

efq_views_handler_filter_field_in_operator
Handle matching of multiple options selectable via checkboxes

Code

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

  // We use array_values() because the checkboxes keep keys and that can cause
  // array addition problems.
  $this->query->query
    ->fieldCondition($this->definition['field_name'], $this->real_field, array_values($this->value), $this->operator, efq_views_extract_delta($this));
}