You are here

function _webform_csv_headers_file in Webform 7.3

Same name and namespace in other branches
  1. 5.2 components/file.inc \_webform_csv_headers_file()
  2. 5 components/file.inc \_webform_csv_headers_file()
  3. 6.3 components/file.inc \_webform_csv_headers_file()
  4. 6.2 components/file.inc \_webform_csv_headers_file()
  5. 7.4 components/file.inc \_webform_csv_headers_file()

Implements _webform_csv_headers_component().

File

components/file.inc, line 467
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(
    $component['name'],
    '',
  );
  $header[2] = array(
    t('Name'),
    t('Filesize (KB)'),
  );
  return $header;
}