function _webform_submit_date in Webform 5.2
Same name and namespace in other branches
- 6.3 components/date.inc \_webform_submit_date()
- 6.2 components/date.inc \_webform_submit_date()
- 7.4 components/date.inc \_webform_submit_date()
- 7.3 components/date.inc \_webform_submit_date()
Convert internationalized Date formats into the US order expected by Webform.
Parameters
$data: The POST data associated with the component.
$component: An array of information describing the component, directly correlating to the webform_component database schema.
Return value
Nothing.
File
- components/
date.inc, line 250 - Webform module date component.
Code
function _webform_submit_date(&$data, $component) {
// Webform stores dates in month/day/year rows.
// Ensure consistency when using international date formats.
$data = array(
$data['month'],
$data['day'],
$data['year'],
);
}