function hook_mob_queue_cron_queue_info_alter in Drush Queue Handling 7
Same name and namespace in other branches
- 8 mob_queue.api.php \hook_mob_queue_cron_queue_info_alter()
Alter cron queue information before mob-queue runs.
Called by mob-queue to allow modules to alter cron queue settings before any jobs are processesed. It works the same as hook_cron_queue_info() but this hook applies only to mob-queue, in case you want to alter queues only under mob-queue execution.
Parameters
array $queue: An array of cron queue information.
See also
1 invocation of hook_mob_queue_cron_queue_info_alter()
- drush_mob_queue_mob_exe_queue in ./
mob_queue.drush.inc - Run the queued job.
File
- ./
mob_queue.api.php, line 27 - Hooks provided by the Drush Queue Handling module.
Code
function hook_mob_queue_cron_queue_info_alter(&$queues) {
// Remove this queue from mob-queue's queue list at all.
unset($queues['myqueue']);
}