1 views_handler_filter_group_by_numeric.inc views_handler_filter_group_by_numeric::op_empty($field)

Overrides views_handler_filter_numeric::op_empty

File

core/modules/views/handlers/views_handler_filter_group_by_numeric.inc, line 40
Definition of views_handler_filter_group_by_numeric.

Class

views_handler_filter_group_by_numeric
Simple filter to handle greater than/less than filters

Code

function op_empty($field) {
  if ($this->operator == 'empty') {
    $operator = "IS NULL";
  }
  else {
    $operator = "IS NOT NULL";
  }

  $this->query->add_having_expression($this->options['group'], "$field $operator");
}