public function UltimateCronSerialLauncher::cron_alter in Ultimate Cron 7.2
Implements hook_cron_alter().
Overrides UltimateCronPlugin::cron_alter
File
- plugins/
ultimate_cron/ launcher/ serial.class.php, line 17 - Serial cron job launcher for Ultimate Cron.
Class
- UltimateCronSerialLauncher
- Ultimate Cron launcher plugin class.
Code
public function cron_alter(&$jobs) {
$class = _ultimate_cron_get_class('lock');
if (isset($jobs['ultimate_cron_plugin_launcher_serial_cleanup']) && !empty($class::$killable)) {
$jobs['ultimate_cron_plugin_launcher_serial_cleanup']->hook['tags'][] = 'killable';
}
}