You are here

function nodequeue_api_subqueues in Nodequeue 6.2

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

Fetch a list of subqueues that are valid for this node from the owning module.

Parameters

$queue: The queue being edited.

$node: The loaded node object being checked.

Return value

An array of subqueues. This will be keyed by $sqid.

2 calls to nodequeue_api_subqueues()
nodequeue_generate_rehash in ./nodequeue_generate.module
Rebuild all smartqueue_taxonomy queues. Useful after a data migration has wiped your terms. When more smartqueue modules arrive, revisit this function.
nodequeue_get_subqueues_by_node in ./nodequeue.module
Get a list of valid subqueues for a node, along with the position of the node.

File

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

Code

function nodequeue_api_subqueues(&$queue, $node) {
  $function = $queue->owner . "_nodequeue_subqueues";

  // This will return an array of references.
  if (function_exists($function)) {
    return $function($queue, $node);
  }
  else {
    return $queue->qid;
  }
}