You are here

function _scheduler_lightweight_cron in Scheduler 6

Same name and namespace in other branches
  1. 7 scheduler.admin.inc \_scheduler_lightweight_cron()

Return the lightweight cron form to allow a manual run.

1 string reference to '_scheduler_lightweight_cron'
scheduler_menu in ./scheduler.module
Implementation of hook_menu().

File

./scheduler.module, line 904

Code

function _scheduler_lightweight_cron() {
  $form = array();
  $form['scheduler_cron'] = array(
    '#type' => 'submit',
    '#prefix' => t("You can test Scheduler's lightweight cron process interactively") . ':<div>',
    '#value' => t("Run Scheduler's cron now"),
    '#submit' => array(
      '_scheduler_run_cron',
    ),
    '#suffix' => "</div>\n",
  );
  return $form;
}