You are here

function scheduler_cron_is_running in Scheduler 7

Same name and namespace in other branches
  1. 8 scheduler.module \scheduler_cron_is_running()
  2. 2.x scheduler.module \scheduler_cron_is_running()

Return whether Scheduler cron is running.

This function can be called from any Scheduler function, from any contrib module or from custom PHP in a view or rule.

Return value

bool TRUE if scheduler_cron is currently running. FALSE if not.

File

./scheduler.module, line 743
Scheduler publishes and unpublishes nodes on dates specified by the user.

Code

function scheduler_cron_is_running() {
  return drupal_static('scheduler_cron');
}