You are here

function elysia_cron_drush_die in Elysia Cron 6.2

Same name and namespace in other branches
  1. 7.2 elysia_cron.drush.inc \elysia_cron_drush_die()
1 call to elysia_cron_drush_die()
elysia_cron_drush_invoke in ./elysia_cron.drush.inc

File

./elysia_cron.drush.inc, line 11

Code

function elysia_cron_drush_die() {
  if (function_exists('drush_bootstrap_finish')) {

    // Only in Drush5
    drush_bootstrap_finish();
    drush_die();
  }
  else {

    // Drush4
    drush_set_context("DRUSH_EXECUTION_COMPLETED", TRUE);
    exit;
  }
}