function commerce_order_handler_filter_order_state::op_empty in Commerce Core 7
Overrides views_handler_filter_in_operator::op_empty
File
- modules/
order/ includes/ views/ handlers/ commerce_order_handler_filter_order_state.inc, line 31
Class
- commerce_order_handler_filter_order_state
- Filter by order state.
Code
function op_empty() {
$this
->ensure_my_table();
if ($this->operator == 'empty') {
$operator = "IS NULL";
}
else {
$operator = "IS NOT NULL";
}
$this->query
->add_where($this->options['group'], "{$this->table_alias}.status", NULL, $operator);
}