You are here

function hook_cron_job_scheduler_info_alter in Job Scheduler 8.2

Same name and namespace in other branches
  1. 8.3 job_scheduler.api.php \hook_cron_job_scheduler_info_alter()
  2. 7.2 job_scheduler.api.php \hook_cron_job_scheduler_info_alter()
  3. 7 job_scheduler.api.php \hook_cron_job_scheduler_info_alter()

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 $info: An array of cron schedule information.

See also

hook_cron_queue_info()

drupal_cron_run()

1 invocation of hook_cron_job_scheduler_info_alter()
job_scheduler_info in ./job_scheduler.module
Collects and returns scheduler info.

File

./job_scheduler.api.php, line 48
API documentation for hooks.

Code

function hook_cron_job_scheduler_info_alter(&$info) {

  // Replace the default callback 'example_cache_clear_worker'.
  $info['example_reset']['worker callback'] = 'my_custom_reset';
}