function _webform_table_date in Webform 7.4
Same name and namespace in other branches
- 6.3 components/date.inc \_webform_table_date()
- 7.3 components/date.inc \_webform_table_date()
Implements _webform_table_component().
File
- components/
date.inc, line 560 - Webform module date component.
Code
function _webform_table_date($component, $value) {
if ($value[0]) {
$timestamp = webform_strtotime($value[0]);
$format = webform_date_format('short', $component['extra']['exclude']);
return format_date($timestamp, 'custom', $format, 'UTC');
}
else {
return '';
}
}