Same name and namespace in other branches
  1. 6.x modules/system/system.admin.inc \system_run_cron()
  2. 7.x modules/system/system.admin.inc \system_run_cron()

Menu callback: run cron manually.

1 string reference to 'system_run_cron'
system_menu in modules/system/system.module
Implementation of hook_menu().

File

modules/system/system.module, line 1762
Configuration system that lets administrators modify the workings of the site.

Code

function system_run_cron() {

  // Run cron manually
  if (drupal_cron_run()) {
    drupal_set_message(t('Cron ran successfully'));
  }
  else {
    drupal_set_message(t('Cron run failed'));
  }
  drupal_goto('admin/logs/status');
}