function content_multigroup_node_form_fix_post in Content Construction Kit (CCK) 6.3
Update posting data to reflect delta changes in the form structure.
The $_POST array is fixed in content_multigroup_node_form_transpose_elements().
1 call to content_multigroup_node_form_fix_post()
- _content_multigroup_node_form_after_build in modules/
content_multigroup/ content_multigroup.node_form.inc - Fix form and posting data when the form is submitted.
File
- modules/
content_multigroup/ content_multigroup.node_form.inc, line 640 - Implementation of node edit functions for content multigroup.
Code
function content_multigroup_node_form_fix_post(&$elements) {
foreach (element_children($elements) as $key) {
if (isset($elements[$key]) && $elements[$key]) {
// Update the element copy of the $_POST array.
$elements[$key]['#post'] = $_POST;
// Recurse through all children elements.
content_multigroup_node_form_fix_post($elements[$key]);
}
}
// Update the form copy of the $_POST array.
$elements['#post'] = $_POST;
}