You are here

public function UltimateCronJob::cron_alter in Ultimate Cron 7.2

Invoke plugin cron_alter().

Calls on cron_alter() on all valid plugins for this job.

File

./ultimate_cron.job.inc, line 54
Job class for Ultimate Cron.

Class

UltimateCronJob
Class for handling cron jobs.

Code

public function cron_alter() {
  $plugin_types = ctools_plugin_get_plugin_type_info();
  foreach ($plugin_types['ultimate_cron'] as $plugin_type => $info) {
    $class = $info['defaults']['static']['class'];
    if ($class::$multiple) {
      $plugins = _ultimate_cron_plugin_load_all($plugin_type);
      foreach ($plugins as $plugin) {
        if ($plugin
          ->isValid($this)) {
          $plugin
            ->cron_alter($this);
        }
      }
    }
    else {
      $plugin = $this
        ->getPlugin($plugin_type);
      $plugin
        ->cron_alter($this);
    }
  }
}