function system_run_cron_submit

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 1663

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.