You are here

function uc_importer_invoke in Ubercart 5

Invoke hook_xml_exporter().

Return value

Concatenated XML data from each module's implementation.

8 calls to uc_importer_invoke()
uc_importer_export in uc_importer/uc_importer.module
Constructs the XML representation of the store from the ids given.
_uc_importer_export_attributes in uc_importer/uc_importer.module
Export product attributes as XML.
_uc_importer_export_categories in uc_importer/uc_importer.module
Export categories as XML.
_uc_importer_export_classes in uc_importer/uc_importer.module
Export product node types as XML.
_uc_importer_export_manufacturers in uc_importer/uc_importer.module
Export manufacturers as XML.

... See full list

File

uc_importer/uc_importer.module, line 1368
XML product importer and exporter.

Code

function uc_importer_invoke() {
  $args = func_get_args();
  $direction = array_shift($args);
  if ($direction = 'export') {
    $output = '';
    foreach (module_list() as $module) {
      if (module_hook($module, 'xml_exporter')) {

        // Can't use module_invoke because of the array of arguments
        $output .= call_user_func_array($module . '_xml_exporter', $args);
      }
    }
    return $output;
  }
}