You are here

function elysia_cron_run_manually in Elysia Cron 7.2

Menu callback: run cron manually.

1 string reference to 'elysia_cron_run_manually'
elysia_cron_menu_alter in ./elysia_cron.module
Implements hook_menu_alter().

File

./elysia_cron.module, line 1305

Code

function elysia_cron_run_manually() {

  // Run cron manually
  if (elysia_cron_run(TRUE)) {
    drupal_set_message(t('Cron ran successfully.'));
  }
  else {
    drupal_set_message(t('Cron run failed.'), 'error');
  }
  drupal_goto('admin/reports/status');
}