function ctools_plugins_default_form_wrapper_submit

Provide a default storage mechanism.

1 string reference to 'ctools_plugins_default_form_wrapper_submit'
ctools_plugins_default_form_wrapper in includes/plugins-admin.inc
A wrapper to provide a default submit so that plugins don't have to duplicate a whole bunch of code to do what most of them want to do anyway.

File

includes/plugins-admin.inc, line 203

Code

function ctools_plugins_default_form_wrapper_submit(&$form, &$form_state) {
    foreach (array_keys($form_state['plugin']['defaults']) as $key) {
        if (isset($form_state['values'][$key])) {
            $form_state['conf'][$key] = $form_state['values'][$key];
        }
    }
}