You are here

public function UltimateCronQueueSettings::settingsFormSubmit in Ultimate Cron 7.2

Form submit handler.

Overrides UltimateCronPlugin::settingsFormSubmit

File

plugins/ultimate_cron/settings/queue.class.php, line 376
Queue settings for Ultimate Cron.

Class

UltimateCronQueueSettings
Queue settings plugin class.

Code

public function settingsFormSubmit(&$form, &$form_state, $job = NULL) {
  if (!$job) {
    $values =& $form_state['values']['settings'][$this->type][$this->name];
    variable_set($this->key . '_enabled', $values['enabled']);
    unset($values['enabled']);
  }
}