You are here

function ultimate_cron_cron_run in Ultimate Cron 7.2

Same name and namespace in other branches
  1. 8 ultimate_cron.module \ultimate_cron_cron_run()
  2. 7 ultimate_cron.module \ultimate_cron_cron_run()

Run cron.

The cron handler takes over the normal Drupal cron handler, and runs the normal hook_cron() plus the hook_cronapi().

1 call to ultimate_cron_cron_run()
ultimate_cron_cron_queue_info in ./ultimate_cron.module
Implements hook_cron_queue_info().

File

./ultimate_cron.module, line 1059

Code

function ultimate_cron_cron_run() {
  if (variable_get('install_task', FALSE) != 'done') {
    return;
  }

  // If run from core cron through CLI then don't do anything (drush core-cron)
  if (drupal_is_cli()) {
    return;
  }
  ultimate_cron_run_scheduled(FALSE);
  exit;
}