You are here

function nodequeue_load_subqueue in Nodequeue 7.2

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.3 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.

Return value

mixed

9 calls to nodequeue_load_subqueue()
NodequeueRulesDataWrapper::load in ./nodequeue.rules.inc
Load a data object given an identifier.
nodequeue_arrange_subqueue_form_add_submit in includes/nodequeue.admin.inc
nodequeue_nodequeue_add in ./nodequeue.module
Implements hook_nodequeue_add()
nodequeue_nodequeue_remove in ./nodequeue.module
Implements hook_nodequeue_remove().
nodequeue_node_delete in ./nodequeue.module
Implements hook_node_delete.

... See full list

File

./nodequeue.module, line 1024
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);
  }
}