private function UltimateCronQueueSettings::get_queues in Ultimate Cron 7.2
Get cron queues and static cache them.
Works like module_invoke_all('cron_queue_info'), but adds a 'module' to each item.
Return value
array Cron queue definitions.
1 call to UltimateCronQueueSettings::get_queues()
- UltimateCronQueueSettings::cronapi in plugins/
ultimate_cron/ settings/ queue.class.php - Implements hook_cronapi().
File
- plugins/
ultimate_cron/ settings/ queue.class.php, line 23 - Queue settings for Ultimate Cron.
Class
- UltimateCronQueueSettings
- Queue settings plugin class.
Code
private function get_queues() {
if (!isset(self::$queues)) {
$queues = array();
foreach (module_implements('cron_queue_info') as $module) {
$items = module_invoke($module, 'cron_queue_info');
if (is_array($items)) {
foreach ($items as &$item) {
$item['module'] = $module;
}
$queues += $items;
}
}
drupal_alter('cron_queue_info', $queues);
self::$queues = $queues;
}
return $queues;
}