function hook_hosting_processed_queues_alter in Hosting 7.4
Same name and namespace in other branches
- 7.3 hosting.api.php \hook_hosting_processed_queues_alter()
Alter module defined queue definitions after they are processed.
This hook is invoked after hosting module calculates the number of items to process when processing queues, and after the configurable information has been merged in.
Parameters
array $queues: The processed array of queue definitions of queues provided by modules.
See also
hosting_get_queues
hook_hosting_queues
hook_hosting_queues_alter
Related topics
1 invocation of hook_hosting_processed_queues_alter()
- hosting_get_queues in ./
hosting.queues.inc - Retrieve a list of queues that need to be dispatched
File
- ./
hosting.api.php, line 179 - Hooks provided by the hosting module, and some other random ones.
Code
function hook_hosting_processed_queues_alter(&$queues) {
if (isset($queues['cron'])) {
// Force the cron queue to always be disabled.
$queues['cron']['enabled'] = FALSE;
}
}