function webform_export_create_handler in Webform 6.3
Same name and namespace in other branches
- 5.2 webform_export.inc \webform_export_create_handler()
- 6.2 webform_export.inc \webform_export_create_handler()
- 7.4 includes/webform.export.inc \webform_export_create_handler()
- 7.3 includes/webform.export.inc \webform_export_create_handler()
Instantiates a new Webform handler based on the format.
1 call to webform_export_create_handler()
- webform_results_export in includes/
webform.report.inc - Generate a Excel-readable CSV file containing all submissions for a Webform.
File
- includes/
webform.export.inc, line 66 - Provides several different handlers for exporting webform results.
Code
function webform_export_create_handler($format, $options) {
$definition = webform_export_fetch_definition($format);
if (isset($definition) && class_exists($definition['handler'])) {
$handler = new $definition['handler']($options);
}
else {
// TODO: Create a default broken exporter.
$handler = new webform_exporter_broken($options);
}
return $handler;
}