function system_run_cron

Same name and namespace in other branches
  1. 7.x drupal-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 drupal-6.x/modules/system/system.module
Implementation of hook_menu().

Archivo

drupal-6.x/modules/system/system.admin.inc, line 1740
Admin page callbacks for the system module.

Código

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.'), 'error');
  }

  drupal_goto('admin/reports/status');
}