You are here

function elysia_cron_run_form_submit in Elysia Cron 7

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.2 elysia_cron.admin.inc \elysia_cron_run_form_submit()
  4. 6 elysia_cron.admin.inc \elysia_cron_run_form_submit()
  5. 7.2 elysia_cron.admin.inc \elysia_cron_run_form_submit()

File

./elysia_cron.admin.inc, line 683

Code

function elysia_cron_run_form_submit($_dco_form, &$_dco_form_state) {

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