You are here

function webform_export_fetch_definition in Webform 6.3

Same name and namespace in other branches
  1. 5.2 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 includes/webform.export.inc
Instantiates a new Webform handler based on the format.
webform_export_list in includes/webform.export.inc
Return a list of exporters suitable for display in a select list.

File

includes/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;
  }
}