Loading webform.api.php +33 −0 Changes for webform.api.php: 33 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -1357,6 +1357,39 @@ function hook_webform_html_capable_mail_systems_alter(&$systems) { } } /** * Define a list of webform exporters. * * @return array * A list of the available exporters provided by the module. * * @see webform_webform_exporters() */ 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; } /** * Modify the list of webform exporters definitions. * * @param array &$exporters * A list of all available webform exporters. */ function hook_webform_exporters_alter(&$exporters) { $exporters['excel']['handler'] = 'customized_excel_exporter'; $exporters['excel']['file'] = drupal_get_path('module', 'yourmodule') . '/includes/customized_excel_exporter.inc'; } /** * @} */ Loading
webform.api.php +33 −0 Changes for webform.api.php: 33 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -1357,6 +1357,39 @@ function hook_webform_html_capable_mail_systems_alter(&$systems) { } } /** * Define a list of webform exporters. * * @return array * A list of the available exporters provided by the module. * * @see webform_webform_exporters() */ 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; } /** * Modify the list of webform exporters definitions. * * @param array &$exporters * A list of all available webform exporters. */ function hook_webform_exporters_alter(&$exporters) { $exporters['excel']['handler'] = 'customized_excel_exporter'; $exporters['excel']['file'] = drupal_get_path('module', 'yourmodule') . '/includes/customized_excel_exporter.inc'; } /** * @} */