You are here

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

Submit handler for 'elysia_cron_run_form' form.

Parameters

array $form: Form API array.

array $form_state: Filled form_state array with input values.

File

./elysia_cron.admin.inc, line 849
Admin page callbacks for the elysia cron module.

Code

function elysia_cron_run_form_submit(array $form, array &$form_state) {

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