function total_control_overview_content_content_type_edit_form_submit in Total Control Admin Dashboard 6
Same name and namespace in other branches
- 6.2 plugins/content_types/overview_content.inc \total_control_overview_content_content_type_edit_form_submit()
- 7.2 plugins/content_types/overview_content.inc \total_control_overview_content_content_type_edit_form_submit()
The submit form stores the data in $form_state['conf'].
File
- plugins/
content_types/ overview_content.inc, line 119
Code
function total_control_overview_content_content_type_edit_form_submit(&$form, &$form_state) {
// For each part of the form defined in the 'defaults' array set when you
// defined the content type, copy the value from the form into the array
// of items to be saved. We don't ever want to use
// $form_state['conf'] = $form_state['values'] because values contains
// buttons, form id and other items we don't want stored. CTools will handle
// the actual form submission.
foreach (array_keys($form_state['plugin']['defaults']) as $key) {
$form_state['conf'][$key] = $form_state['values'][$key];
}
}