You are here

function ultimate_cron_plugin_cleanup in Ultimate Cron 7.2

Plugin clean up cron job.

This is a cron callback for cleanup up plugins.

Parameters

UltimateCronJob $job: The cron job being run.

array $arguments: (optional) An array that can have one or more of the following elements:

  • type: The type of the plugin (settings, scheduler, launcher, logger).
  • name: The name of the plugin (queue, crontab, serial, database).
1 string reference to 'ultimate_cron_plugin_cleanup'
ultimate_cron_cronapi in ./ultimate_cron.cron.inc
Implements hook_cronapi().

File

./ultimate_cron.module, line 1033

Code

function ultimate_cron_plugin_cleanup($job, $arguments) {
  $type = $arguments['type'];
  $name = $arguments['name'];
  $plugin = _ultimate_cron_plugin_require($type, $name);
  $plugin
    ->cleanup();
}