function views_handler_filter_in_operator::op_empty
Same name in other branches
- 7.x-3.x handlers/views_handler_filter_in_operator.inc \views_handler_filter_in_operator::op_empty()
File
-
handlers/
views_handler_filter_in_operator.inc, line 377
Class
- views_handler_filter_in_operator
- Simple filter to handle matching of multiple options selectable via checkboxes
Code
function op_empty() {
$this->ensure_my_table();
$field = "{$this->table_alias}.{$this->real_field}";
if ($this->operator == 'empty') {
$operator = "IS NULL";
}
else {
$operator = "IS NOT NULL";
}
$this->query
->add_where($this->options['group'], "{$field} {$operator}");
}