You are here

function _webform_csv_headers_matrix in Webform Matrix Component 6

Same name and namespace in other branches
  1. 7.4 components/matrix.inc \_webform_csv_headers_matrix()
  2. 7 components/matrix.inc \_webform_csv_headers_matrix()
  3. 7.2 components/matrix.inc \_webform_csv_headers_matrix()
  4. 7.3 components/matrix.inc \_webform_csv_headers_matrix()

Implements _webform_csv_headers_component().

File

components/matrix.inc, line 742
Webform module matrix component.

Code

function _webform_csv_headers_matrix($component, $export_options) {
  $header = array();
  $sub_elements = $component['extra']['element'];
  foreach ($sub_elements as $sub_element) {
    $header[1][] = check_plain($component['name']);
    $header[2][] = check_plain($sub_element['title']);
  }
  return $header;
}