You are here

function Ip2LongFilter::op_empty in IP address manager 7.2

Overrides views_handler_filter_numeric::op_empty

File

src/Plugin/views/filter/Ip2LongFilter.php, line 26
Contains the ip_views_handler_filter_ip2long class.

Class

Ip2LongFilter
A handler to provide proper displays IP Long values

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);
}