function _webform_csv_headers_file in Webform 7.4
Same name and namespace in other branches
- 5.2 components/file.inc \_webform_csv_headers_file()
- 5 components/file.inc \_webform_csv_headers_file()
- 6.3 components/file.inc \_webform_csv_headers_file()
- 6.2 components/file.inc \_webform_csv_headers_file()
- 7.3 components/file.inc \_webform_csv_headers_file()
Implements _webform_csv_headers_component().
File
- components/
file.inc, line 550 - Webform module file component.
Code
function _webform_csv_headers_file($component, $export_options) {
$header = array();
// Two columns in header.
$header[0] = array(
'',
'',
);
$header[1] = array(
$export_options['header_keys'] ? $component['form_key'] : $component['name'],
'',
);
$header[2] = array(
t('Name'),
t('Filesize (KB)'),
);
return $header;
}