You are here

function _scheduler_generate_key in Scheduler 7

Form submission handler for _scheduler_lightweight_cron().

This only fires when the 'Generate new random key' button is clicked.

1 string reference to '_scheduler_generate_key'
_scheduler_lightweight_cron in ./scheduler.admin.inc
Form constructor for the lightweight cron form to allow a manual run.

File

./scheduler.admin.inc, line 465
Administration forms for the Scheduler module.

Code

function _scheduler_generate_key($form, &$form_state) {

  // Everything in $form_state is persistent, so we can use a direct attribute.
  $form_state['scheduler_generate_new_key'] = TRUE;

  // Setting $form_state['rebuild'] = TRUE causes the form to be rebuilt again.
  $form_state['rebuild'] = TRUE;
}