You are here

public static function UltimateCronPlugin::jobSettingsFormSubmit in Ultimate Cron 7.2

Job settings form submit handler.

1 method overrides UltimateCronPlugin::jobSettingsFormSubmit()
UltimateCronPluginMultiple::jobSettingsFormSubmit in ./ultimate_cron.plugin.inc
Job settings form submit handler.

File

./ultimate_cron.plugin.inc, line 609
Plugin framework for Ultimate Cron.

Class

UltimateCronPlugin
This is the base class for all Ultimate Cron plugins.

Code

public static function jobSettingsFormSubmit($form, &$form_state, $plugin_type, $job = NULL) {
  $name = !empty($form_state['values']['settings'][$plugin_type]['name']) ? $form_state['values']['settings'][$plugin_type]['name'] : $job->hook[$plugin_type]['name'];
  $plugin = _ultimate_cron_plugin_require($plugin_type, $name);
  $plugin
    ->settingsFormSubmit($form, $form_state, $job);

  // Weed out blank values that have fallbacks.
  $elements =& $form['settings'][$plugin_type][$name];
  $values =& $form_state['values']['settings'][$plugin_type][$name];
  $plugin
    ->cleanForm($elements, $values, array(
    'settings',
    $plugin_type,
    $name,
  ));
}