function views_handler_filter_numeric::check_for_null in Views (for Drupal 7) 6.3
2 calls to views_handler_filter_numeric::check_for_null()
File
- handlers/
views_handler_filter_numeric.inc, line 279
Class
- views_handler_filter_numeric
- Simple filter to handle greater than/less than filters
Code
function check_for_null($field) {
$is_null = $this->options['allow_null'] ? "OR {$field} IS NULL" : FALSE;
switch ($this->operator) {
case '>':
$is_null = FALSE;
case '>=':
case '=':
if ($this->value['value'] > 0) {
$is_null = FALSE;
}
}
return $is_null;
}