You are here

function _webform_csv_headers_file in Webform 5

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

Return the header information for this component to be displayed in a comma seperated value file. The output of this function will be displayed under the "results" tab then "download".

Parameters

$component: An array of information describing the component, directly correlating to the webform_component database schema.

Return value

An array of data to be displayed in the first three rows of a CSV file, not including either prefixed or trailing commas.

File

components/file.inc, line 424

Code

function _webform_csv_headers_file($component) {
  $header = array();
  $header[0] = '';

  // Two columns in header.
  $header[1] = $component['name'] . '\\,';
  $header[2] = 'Name\\,Filesize (KB)';
  return $header;
}