You are here

function hook_cron_alter in Ultimate Cron 7.2

Same name and namespace in other branches
  1. 8.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.

2 functions implement hook_cron_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

UltimateCronPlugin::hook_cron_alter in ./ultimate_cron.plugin.inc
Invoke hook_cron_alter() on plugins.
ultimate_cron_cron_alter in ./ultimate_cron.cron.inc
Implements hook_cron_alter().
1 invocation of hook_cron_alter()
ultimate_cron_get_hooks in ./ultimate_cron.module
Get all cron hooks defined.

File

./ultimate_cron.api.php, line 116
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!';
}