function _scheduler_cron_access in Scheduler 7
Access callback for the lightweight cron url /scheduler/cron/key.
Parameters
string $cron_key: The cron key that was passed as a URL argument.
Return value
bool TRUE if the cron url key is correct. FALSE otherwise.
1 string reference to '_scheduler_cron_access'
- scheduler_menu in ./
scheduler.module - Implements hook_menu().
File
- ./
scheduler.module, line 756 - Scheduler publishes and unpublishes nodes on dates specified by the user.
Code
function _scheduler_cron_access($cron_key) {
$valid_cron_key = variable_get('scheduler_lightweight_access_key', '');
return $valid_cron_key == $cron_key;
}