function ultimate_cron_plugin_settings_submit in Ultimate Cron 7.2
Submit handler for plugin settings.
1 string reference to 'ultimate_cron_plugin_settings_submit'
- ultimate_cron_plugin_settings in ./
ultimate_cron.admin.inc - Settings form for plugins.
File
- ./
ultimate_cron.admin.inc, line 83 - Ultimate Cron!
Code
function ultimate_cron_plugin_settings_submit($form, &$form_state) {
$plugin_type = $form_state['values']['plugin_type'];
$name = $form_state['values']['name'];
$plugin = _ultimate_cron_plugin_require($plugin_type, $name);
$plugin
->settingsFormSubmit($form, $form_state);
// Since this is a system_settings_form() we need to move the submitted data
// around a little.
$form_state['values'][$plugin->key] = $form_state['values']['settings'][$plugin_type][$name];
unset($form_state['values']['plugin_type']);
unset($form_state['values']['name']);
unset($form_state['values']['settings']);
}