You are here

function webform_export_fetch_definition in Webform 5.2

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

Returns a Webform exporter definition.

2 calls to webform_export_fetch_definition()
webform_export_create_handler in ./webform_export.inc
Instantiates a new Webform handler based on the format.
webform_export_list in ./webform_export.inc
Return a list of exporters suitable for display in a select list.

File

./webform_export.inc, line 47
Provides several different handlers for exporting webform results.

Code

function webform_export_fetch_definition($format = NULL) {
  static $cache;
  if (!isset($cache)) {
    $cache = module_invoke_all('webform_exporters');
  }
  if (isset($format)) {
    if (isset($cache[$format])) {
      return $cache[$format];
    }
  }
  else {
    return $cache;
  }
}