function addressfield_widget_process in Address Field 7
Form API process function: set the #parents of the children of this element so they appear at the same level as the parent.
1 string reference to 'addressfield_widget_process'
- addressfield_element_info in ./
addressfield.module - Implementation of hook_element_info().
File
- ./
addressfield.module, line 370 - Defines a field for attaching country-specific addresses to entities.
Code
function addressfield_widget_process($element) {
foreach (element_children($element) as $key) {
$element[$key]['#parents'] = $element['#parents'];
$element[$key]['#parents'][count($element[$key]['#parents']) - 1] = $key;
}
return $element;
}