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

File

core/modules/views/handlers/views_handler_filter_numeric.inc, line 262
Definition of views_handler_filter_numeric.

Class

views_handler_filter_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_where($this->options['group'], $field, NULL, $operator);
}