public function views_handler_filter_combine::op_empty in Views (for Drupal 7) 7.3
Overrides views_handler_filter_string::op_empty
File
- handlers/
views_handler_filter_combine.inc, line 215 - Definition of views_handler_filter_combine.
Class
- views_handler_filter_combine
- Filter handler which allows to search on multiple fields.
Code
public function op_empty($field) {
if ($this->operator == 'empty') {
$operator = "IS NULL";
}
else {
$operator = "IS NOT NULL";
}
$this->query
->add_where_expression($this->options['group'], "{$field} {$operator}");
}