You are here

function nodequeue_load_queues_by_type in Nodequeue 7.2

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

Fetch a list of available queues for a given location.

Parameters

$type: Content type of the node.

$location: Location where the link can appear, for example: link or tab

$account: The user account, or NULL to use logged-in user.

$bypass_cache: Whether or not to bypass the cache and load all qids fresh.

Return value

array Array of fully loaded queues keyed by qid.

3 calls to nodequeue_load_queues_by_type()
nodequeue_node_links in ./nodequeue.module
Returns an array of nodequeue links for a node.
nodequeue_node_tab in includes/nodequeue.admin.inc
Display the queue controls for a node.
nodequeue_node_tab_access in ./nodequeue.module

File

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

Code

function nodequeue_load_queues_by_type($type, $location = NULL, $account = NULL, $bypass_cache = FALSE) {
  $qids = nodequeue_get_qids($type, $account, $bypass_cache);
  if ($location) {
    nodequeue_filter_qids($qids, $location);
  }
  return nodequeue_load_queues(array_keys($qids), $bypass_cache);
}