You are here

function webform_webform_exporters in Webform 7.3

Same name and namespace in other branches
  1. 5.2 webform_export.inc \webform_webform_exporters()
  2. 6.3 includes/webform.export.inc \webform_webform_exporters()
  3. 6.2 webform_export.inc \webform_webform_exporters()
  4. 7.4 includes/webform.export.inc \webform_webform_exporters()

Implements hook_webform_exporters().

Defines the exporters this module implements.

Return value

An "array of arrays", keyed by content-types. The 'handler' slot should point to the PHP class implementing this flag.

File

includes/webform.export.inc, line 17
Provides several different handlers for exporting webform results.

Code

function webform_webform_exporters() {
  return array(
    'delimited' => array(
      'title' => t('Delimited text'),
      'description' => t('A plain text file delimited by commas, tabs, or other characters.'),
      'handler' => 'webform_exporter_delimited',
    ),
    'excel' => array(
      'title' => t('Microsoft Excel'),
      'description' => t('A file readable by Microsoft Excel.'),
      'handler' => 'webform_exporter_excel',
    ),
  );
}