You are here

function hook_cron_alter in Ultimate Cron 8.2

Same name and namespace in other branches
  1. 7.2 ultimate_cron.api.php \hook_cron_alter()

Alter the output of hook_cronapi() and hook_cron().

Note that the result of this hook is cached just like hook_cronapi().

This can hook can also be implemented inside a plugin, but with a slight difference. Inside the plugin, the hook is not cached and it operates on an array of UltimateCronJob objects instead of hook definitions.

Parameters

array &$items: Hooks defined in the system.

File

./ultimate_cron.api.php, line 121
Hooks provided by Ultimate Cron.

Code

function hook_cron_alter(&$items) {
  $items['example_my_cron_job_1']['title'] = 'NEW TITLE FOR EXAMPLE CRON JOB #1! HA!';
}