function hook_cron_queue_info_alter

hook_cron_queue_info_alter(&$queues)

Alter cron queue information before cron runs.

Called by drupal_cron_run() to allow modules to alter cron queue settings before any jobs are processesed.

Parameters

array $queues: An array of cron queue information.

See also

hook_cron_queue_info()

drupal_cron_run()

Related topics

File

modules/system/system.api.php, line 640
Hooks provided by Drupal core and the System module.

Code

function hook_cron_queue_info_alter(&$queues) {
  // This site has many feeds so let's spend 90 seconds on each cron run
  // updating feeds instead of the default 60.
  $queues['aggregator_feeds']['time'] = 90;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_cron_queue_info_alter/7.x