You are here

final public static function UltimateCronPlugin::hook_cron_pre_run in Ultimate Cron 7.2

Invoke hook_cron_pre_run() on plugins.

1 call to UltimateCronPlugin::hook_cron_pre_run()
UltimateCronJob::run in ./ultimate_cron.job.inc
Run job.

File

./ultimate_cron.plugin.inc, line 189
Plugin framework for Ultimate Cron.

Class

UltimateCronPlugin
This is the base class for all Ultimate Cron plugins.

Code

public static final function hook_cron_pre_run($job) {
  ctools_include('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($job)) {
        $plugin
          ->cron_pre_run($job);
      }
    }
  }
}