You are here

function poormanscron_run_cron_check_access in Poormanscron 5.2

Same name and namespace in other branches
  1. 6.2 poormanscron.module \poormanscron_run_cron_check_access()

Checks if the feature to automatically run cron is enabled.

Also used as a menu access callback for this feature.

Return value

TRUE if cron threshold is enabled, FALSE otherwise.

See also

poormanscron_run_cron_check()

1 call to poormanscron_run_cron_check_access()
poormanscron_menu in ./poormanscron.module
Implements hook_menu().

File

./poormanscron.module, line 54
A module which runs Drupal cron jobs without the cron application.

Code

function poormanscron_run_cron_check_access() {
  return variable_get('cron_safe_threshold', 10800) > 0;
}