function nodequeue_api_subqueues in Nodequeue 5.2
Same name and namespace in other branches
- 6.2 nodequeue.module \nodequeue_api_subqueues()
- 7.3 nodequeue.module \nodequeue_api_subqueues()
- 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 2337
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;
}
}