You are here

function ultimate_cron_get_plugin_hooks in Ultimate Cron 7.2

Get hooks defined in plugins.

1 call to ultimate_cron_get_plugin_hooks()
ultimate_cron_get_hooks in ./ultimate_cron.module
Get all cron hooks defined.

File

./ultimate_cron.module, line 1411

Code

function ultimate_cron_get_plugin_hooks() {
  $items = array();

  // Invoke hook_cronapi() on the plugins.
  $plugin_types = ctools_plugin_get_plugin_type_info();
  foreach ($plugin_types['ultimate_cron'] as $plugin_type => $info) {
    $plugins = _ultimate_cron_plugin_load_all($plugin_type);
    foreach ($plugins as $plugin) {
      if ($plugin
        ->isValid()) {
        $items += $plugin
          ->cronapi();
      }
    }
  }
  return $items;
}