1 system.admin.inc | system_run_cron() |
Menu callback: run cron manually.
File
- core/
modules/ system/ system.admin.inc, line 2643 - Admin page callbacks for the System module.
Code
function system_run_cron() {
// Run cron manually.
if (backdrop_cron_run()) {
backdrop_set_message(t('Cron ran successfully.'));
}
else {
backdrop_set_message(t('Cron run failed.'), 'error');
}
if ($_SERVER['HTTP_REFERER']) {
backdrop_goto($_SERVER['HTTP_REFERER']);
}
else {
backdrop_goto('admin/reports/status');
}
}