1 system.admin.inc system_run_cron_submit($form, &$form_state)

Submit callback; run cron.

Related topics

File

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

Code

function system_run_cron_submit($form, &$form_state) {
  // Run cron manually from Cron form.
  if (backdrop_cron_run()) {
    backdrop_set_message(t('Cron run successfully.'));
  }
  else {
    backdrop_set_message(t('Cron run failed.'), 'error');
  }

  backdrop_goto('admin/config/system/cron');
}