You are here

function elysia_cron_drush_invoke in Elysia Cron 6.2

Same name and namespace in other branches
  1. 7.2 elysia_cron.drush.inc \elysia_cron_drush_invoke()
1 call to elysia_cron_drush_invoke()
elysia_cron_cron in ./elysia_cron.module
Hook cron is invoked only by standard drupal cron. It's used to replace drupal cron.

File

./elysia_cron.drush.inc, line 23

Code

function elysia_cron_drush_invoke($replace_core_cron = false) {
  $args = drush_get_arguments();
  array_shift($args);

  // If invoked like "core-cron" i do the same as that: execute "run"
  if ($replace_core_cron && empty($args)) {
    $args = array(
      "run",
    );
  }
  call_user_func_array('drush_elysia_cron_run_wrapper', $args);
  elysia_cron_drush_die();
}