You are here

function ultimate_cron_hook_info in Ultimate Cron 7.2

Same name and namespace in other branches
  1. 8.2 ultimate_cron.module \ultimate_cron_hook_info()

Implements hook_hook_info().

File

./ultimate_cron.module, line 733

Code

function ultimate_cron_hook_info() {
  $hooks = array();

  // Add all easy hooks to cron group.
  $easy_hooks = ultimate_cron_get_easy_hooks();

  // Always ensure hook_cron() plus more is present in group.
  $easy_hooks += array(
    'cron' => array(),
    'cron_alter' => array(),
    'cronapi' => array(),
  );
  foreach (array_keys($easy_hooks) as $name) {
    $hooks[$name] = array(
      'group' => 'cron',
    );
  }
  $hooks['cron_easy_hooks'] = array(
    'group' => 'cron',
  );
  $hooks['cron_easy_hooks_alter'] = array(
    'group' => 'cron',
  );
  $hooks['cron_pre_schedule'] = array(
    'group' => 'cron',
  );
  $hooks['cron_post_schedule'] = array(
    'group' => 'cron',
  );
  $hooks['cron_pre_launch'] = array(
    'group' => 'cron',
  );
  $hooks['cron_post_launch'] = array(
    'group' => 'cron',
  );
  $hooks['cron_pre_run'] = array(
    'group' => 'cron',
  );
  $hooks['cron_post_run'] = array(
    'group' => 'cron',
  );
  $hooks['cron_pre_invoke'] = array(
    'group' => 'cron',
  );
  $hooks['cron_post_invoke'] = array(
    'group' => 'cron',
  );
  $hooks['ultimate_cron_plugin_build_operations_alter'] = array(
    'group' => 'cron',
  );
  return $hooks;
}