You are here

function elysia_cron_drush_detect in Elysia Cron 6.2

Same name and namespace in other branches
  1. 7.2 elysia_cron.drush.inc \elysia_cron_drush_detect()
1 call to elysia_cron_drush_detect()
elysia_cron_cron in ./elysia_cron.module
Hook cron is invoked only by standard drupal cron. It's used to replace drupal cron.
1 string reference to 'elysia_cron_drush_detect'
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 7

Code

function elysia_cron_drush_detect() {
  return !isset($_SERVER['SERVER_SOFTWARE']) && (php_sapi_name() == 'cli' || is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0) && function_exists('drush_main');
}