public function views_handler_filter_string::op_empty in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 handlers/views_handler_filter_string.inc \views_handler_filter_string::op_empty()
- 6.2 handlers/views_handler_filter_string.inc \views_handler_filter_string::op_empty()
1 method overrides views_handler_filter_string::op_empty()
File
- handlers/
views_handler_filter_string.inc, line 392 - Definition of views_handler_filter_string.
Class
- views_handler_filter_string
- Basic textfield filter to handle string filtering commands including equality, like, not like, etc.
Code
public 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);
}