You are here

function elysia_cron_run_form_submit in Elysia Cron 6.2

Same name and namespace in other branches
  1. 5.2 elysia_cron.admin.inc \elysia_cron_run_form_submit()
  2. 5 elysia_cron.admin.inc \elysia_cron_run_form_submit()
  3. 6 elysia_cron.admin.inc \elysia_cron_run_form_submit()
  4. 7.2 elysia_cron.admin.inc \elysia_cron_run_form_submit()
  5. 7 elysia_cron.admin.inc \elysia_cron_run_form_submit()

File

./elysia_cron.admin.inc, line 729

Code

function elysia_cron_run_form_submit($_dco_form, &$_dco_form_state) {

  // Run cron manually from Cron form.
  if (elysia_cron_run()) {
    elysia_cron_message('Cron run successfully.');
  }
  else {
    elysia_cron_error('Cron run failed.');
  }
  drupal_goto(_dcf_internal_path('admin/config/system/cron'));
}