You are here

public function UltimateCronCrontabScheduler::settingsFormSubmit in Ultimate Cron 7.2

Submit handler.

Overrides UltimateCronPlugin::settingsFormSubmit

File

plugins/ultimate_cron/scheduler/crontab.class.php, line 100
Crontab cron job scheduler for Ultimate Cron.

Class

UltimateCronCrontabScheduler
Crontab scheduler.

Code

public function settingsFormSubmit(&$form, &$form_state, $job = NULL) {
  $values =& $form_state['values']['settings'][$this->type][$this->name];
  if (!empty($values['rules'])) {
    $rules = explode(';', $values['rules']);
    $values['rules'] = array_map('trim', $rules);
  }
}