You are here

function nodequeue_load_subqueue in Nodequeue 7.3

Same name and namespace in other branches
  1. 5.2 nodequeue.module \nodequeue_load_subqueue()
  2. 6.2 nodequeue.module \nodequeue_load_subqueue()
  3. 7.2 nodequeue.module \nodequeue_load_subqueue()

Load a single subqueue.

Parameters

$sqid: The subqueue ID to load.

$bypass_cache: Boolean value indicating whether to bypass the cache or not.

4 calls to nodequeue_load_subqueue()
nodequeue_arrange_subqueue_form_add_submit in includes/nodequeue.admin.inc
nodequeue_save_subqueue_order in includes/nodequeue.admin.inc
Validates new subqueue order information and if it passes validation, deletes the old subqueue data from the database and saves the new data.
nodequeue_subqueue_shuffle in ./nodequeue.module
Shuffle a queue.
_nodequeue_autocomplete in includes/nodequeue.admin.inc

File

./nodequeue.module, line 727
Maintains queues of nodes in arbitrary order.

Code

function nodequeue_load_subqueue($sqid, $bypass_cache = FALSE) {
  $subqueues = nodequeue_load_subqueues(array(
    $sqid,
  ), $bypass_cache);
  if ($subqueues) {
    return array_shift($subqueues);
  }
}