function nodequeue_handler_filter_in_queue::query in Nodequeue 7.2
Same name and namespace in other branches
- 6.2 includes/views/nodequeue_handler_filter_in_queue.inc \nodequeue_handler_filter_in_queue::query()
- 7.3 includes/views/nodequeue_handler_filter_in_queue.inc \nodequeue_handler_filter_in_queue::query()
Add this filter to the query.
Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.
Overrides views_handler_filter_boolean_operator::query
File
- includes/
views/ nodequeue_handler_filter_in_queue.inc, line 8 - Handler to filter for nodes that are not in a queue.
Class
- nodequeue_handler_filter_in_queue
- @file Handler to filter for nodes that are not in a queue.
Code
function query() {
$this
->ensure_my_table();
$this->query
->add_where($this->options['group'], $this->table_alias . ".nid", 0, $this->value ? '!=' : 'IS NULL');
}