You are here

function efq_views_handler_filter_in_operator::operators in EntityFieldQuery Views Backend 7

This kind of construct makes it relatively easy for a child class to add or remove functionality by overriding this function and adding/removing items from this array.

Overrides views_handler_filter_in_operator::operators

File

handlers/efq_views_handler_filter_in_operator.inc, line 23
Definition of views_handler_filter_in_operator.

Class

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

Code

function operators() {
  $operators = array(
    'IN' => array(
      'title' => t('Is one of'),
      'short' => t('in'),
      'short_single' => t('='),
      'method' => 'op_simple',
      'values' => 1,
    ),
    'NOT IN' => array(
      'title' => t('Is not one of'),
      'short' => t('not in'),
      'short_single' => t('<>'),
      'method' => 'op_simple',
      'values' => 1,
    ),
  );
  return $operators;
}