You are here

function cron_debug_check_flag in Cron Debug 7

Returns the result of the most recent Cron Debug run.

Reads the 'cron_debug_flag' variable which is either:

  • unset if the previous cron debug run was successful.
  • the name of the module cron was last running, if the cron run was unsuccessful.

The 'cron_debug_flag' is then reset.

Return value

The name of the module if cron stopped running for that module, CRON_DEBUG_RUNNING if cron debug failed generically in cron_debug_run(), and FALSE if no errors occurred.

1 call to cron_debug_check_flag()
cron_debug_form in ./cron_debug.module
Create the main form.

File

./cron_debug.module, line 273
Cron debugging for administrators.

Code

function cron_debug_check_flag() {
  $result = variable_get('cron_debug_flag', FALSE);
  variable_del('cron_debug_flag');
  return $result;
}