On this page
function system_run_cron_submit
system_run_cron_submit($form, &$form_state)
Submit callback; run cron.
Related topics
File
- modules/system/system.admin.inc, line 1648
- 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');
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.admin.inc/function/system_run_cron_submit/7.x