You are here

function hook_webform_exporters in Webform 7.4

Define a list of webform exporters.

Return value

array A list of the available exporters provided by the module.

See also

webform_webform_exporters()

Related topics

1 function implements hook_webform_exporters()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

webform_webform_exporters in includes/webform.export.inc
Implements hook_webform_exporters().
1 invocation of hook_webform_exporters()
webform_export_fetch_definition in includes/webform.export.inc
Returns a Webform exporter definition.

File

./webform.api.php, line 1437
Sample hooks demonstrating usage in Webform.

Code

function hook_webform_exporters() {
  $exporters = array(
    'webform_exporter_custom' => array(
      'title' => t('Webform exporter name'),
      'description' => t('The description for this exporter.'),
      'handler' => 'webform_exporter_custom',
      'file' => drupal_get_path('module', 'yourmodule') . '/includes/webform_exporter_custom.inc',
      'weight' => 10,
    ),
  );
  return $exporters;
}