You are here

function system_run_cron_submit in Drupal 7

Submit callback; run cron.

Related topics

1 string reference to 'system_run_cron_submit'
system_cron_settings in modules/system/system.admin.inc
Form builder; Cron form.

File

modules/system/system.admin.inc, line 1649
Admin page callbacks for the system module.

Code

function system_run_cron_submit($form, &$form_state) {

  // Run cron manually from Cron form.
  if (drupal_cron_run()) {
    drupal_set_message(t('Cron run successfully.'));
  }
  else {
    drupal_set_message(t('Cron run failed.'), 'error');
  }
  drupal_goto('admin/config/system/cron');
}