function _webform_submit_addressfield in Addressfield Tokens 7
A hook for changing the input values before saving to the database.
Webform expects a component to consist of a single field, or a single array of fields. If you have a component that requires a deeper form tree you must flatten the data into a single array using this callback or by setting #parents on each field to avoid data loss and/or unexpected behavior. Note that Webform will save the result of this function directly into the database.
Parameters
mixed $component: A Webform component array.
mixed $value: The POST data associated with the user input.
Return value
array An array of values to be saved into the database. Note that this should be a numerically keyed array.
File
- ./
addressfield_tokens.components.inc, line 307 - Webform Component information for an address field type.
Code
function _webform_submit_addressfield($component, $value) {
return serialize($value);
}