You are here

nodequeue_handler_sort_in_queue.inc in Nodequeue 7.2

Handler to sort the nodes that are in a nodequeue from the ones that are not.

File

includes/views/nodequeue_handler_sort_in_queue.inc
View source
<?php

/**
 * @file
 * Handler to sort the nodes that are in a nodequeue from the ones that are not.
 */

/**
 * Sort the view by a boolean, is this is a nodequeue node or not.
 */
class nodequeue_handler_sort_in_queue extends views_handler_sort {
  function query() {
    $this
      ->ensure_my_table();
    $this->query
      ->add_orderby(NULL, "({$this->table_alias}.nid IS NULL)", $this->options['order']);
  }

}

Classes

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