You are here

function nodequeue_handler_sort_in_queue::query in Nodequeue 7.2

Called to add the sort to a query.

Overrides views_handler_sort::query

File

includes/views/nodequeue_handler_sort_in_queue.inc, line 13
Handler to sort the nodes that are in a nodequeue from the ones that are not.

Class

nodequeue_handler_sort_in_queue
Sort the view by a boolean, is this is a nodequeue node or not.

Code

function query() {
  $this
    ->ensure_my_table();
  $this->query
    ->add_orderby(NULL, "({$this->table_alias}.nid IS NULL)", $this->options['order']);
}