function _webform_submit_date in Webform 7.3
Same name and namespace in other branches
- 5.2 components/date.inc \_webform_submit_date()
- 6.3 components/date.inc \_webform_submit_date()
- 6.2 components/date.inc \_webform_submit_date()
- 7.4 components/date.inc \_webform_submit_date()
Implements _webform_submit_component().
File
- components/
date.inc, line 335 - Webform module date component.
Code
function _webform_submit_date($component, $value) {
// Convert the date to an ISO 8601 format.
return $value['year'] && $value['month'] && $value['day'] ? webform_date_string($value, 'date') : '';
}