function smartqueue_domain_get_queues in Smartqueue Domain 7
Helper function. Get all "smartqueue" queues belonging to this module.
Return value
An array of queues, keyed by queue id.
2 calls to smartqueue_domain_get_queues()
- smartqueue_domain_domain_insert in ./
smartqueue_domain.module - Implements hook_domain_insert().
- smartqueue_domain_get_subqueues_by_domain in ./
smartqueue_domain.module - Helper function. Get all subqueues belonging to a domain.
File
- ./
smartqueue_domain.module, line 111
Code
function smartqueue_domain_get_queues() {
$smartqueue_queues = array();
$queues = nodequeue_load_queues(nodequeue_get_all_qids());
foreach ($queues as $qid => $queue) {
if ($queue->owner == 'smartqueue_domain') {
$smartqueue_queues[$qid] = $queue;
}
}
return $smartqueue_queues;
}