You are here

function ultimate_cron_poorman_page in Ultimate Cron 7.2

Page callback for triggering poormans cron.

1 string reference to 'ultimate_cron_poorman_page'
ultimate_cron_menu in ./ultimate_cron.module
Implements hook_menu().

File

./ultimate_cron.poorman.inc, line 204
Poormans cron functions.

Code

function ultimate_cron_poorman_page() {
  if (!isset($_GET['cron_key']) || variable_get('cron_key', 'drupal') != $_GET['cron_key']) {
    watchdog('cron', 'Cron could not run because an invalid key was used.', array(), WATCHDOG_NOTICE);
    drupal_access_denied();
  }
  drupal_page_is_cacheable(FALSE);
  drupal_exit();
}