You are here

function feeds_export in Feeds 6

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_export()
  2. 7.2 feeds.module \feeds_export()
  3. 7 feeds.module \feeds_export()

Exports a FeedsImporter configuration to code.

Related topics

1 call to feeds_export()
feeds_ui_export_form in feeds_ui/feeds_ui.admin.inc
Export a feed configuration.

File

./feeds.module, line 664
Feeds - basic API functions and hook implementations.

Code

function feeds_export($importer_id, $indent = '') {
  ctools_include('export');
  $result = ctools_export_load_object('feeds_importer', 'names', array(
    'id' => $importer_id,
  ));
  if (isset($result[$importer_id])) {
    return ctools_export_object('feeds_importer', $result[$importer_id], $indent);
  }
}