You are here

function nodequeue_load in Nodequeue 7.2

Same name and namespace in other branches
  1. 5.2 nodequeue.module \nodequeue_load()
  2. 5 nodequeue.module \nodequeue_load()
  3. 6.2 nodequeue.module \nodequeue_load()
  4. 7.3 nodequeue.module \nodequeue_load()

Load a nodequeue.

Parameters

$qid: The qid of the queue to load.

Return value

mixed if $queues is empty the function will return empty array else $queues.

12 calls to nodequeue_load()
NodequeueAPICRUDUnitTest::testNodequeueModify in tests/nodequeue.test
NodequeueWebTestCase::populateNodequeue in tests/nodequeue.test
nodequeue_api_subqueue_access in ./nodequeue.module
Allows the owning module of a subqueue to restrict access to viewing and manipulating the queue.
nodequeue_arrange_subqueue_form_add_submit in includes/nodequeue.admin.inc
nodequeue_contextual_links_view_alter in ./nodequeue.module
Implements hook_contextual_links_view_alter().

... See full list

File

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

Code

function nodequeue_load($qid) {
  $queues = nodequeue_load_queues(array(
    $qid,
  ));
  return !empty($queues) ? array_shift($queues) : array();
}