function poormanscron_run_cron_check_access in Poormanscron 6.2
Same name and namespace in other branches
- 5.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
1 call to poormanscron_run_cron_check_access()
- poormanscron_init in ./
poormanscron.module - Implements hook_init().
1 string reference 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;
}