'hosting_dispatch', 'description' => 'Centralized command for dispatching the various queue processors (hosting, cron, backup etc.)' ); $items['hosting setup'] = array( 'callback' => 'hosting_setup', 'description' => t('Set up initial configuration settings such as the cron entry for the queue dispatcher and more.'), ); $queues = hosting_get_queues(); foreach ($queues as $queue => $info) { $dispatch = t("Dispatched: @items items every @frequency minutes", array('@items' => $info['items'], '@frequency' => round($info['frequency'] / 60))); $items['hosting ' . $queue] = array( 'callback' => 'hosting_run_queue', 'description' => $info['description'] . " " . $dispatch, 'queue' => $queue, ); } $items['hosting task'] = array( 'description' => 'execute a specific queue item', ); return $items; }