function taxonomy_xml_source_features_export in Taxonomy import/export via XML 7
Same name and namespace in other branches
- 6.2 taxonomy_xml.features.inc \taxonomy_xml_source_features_export()
Implements hook_features_export().
Process the export array for a given component.
Normally, we will be adding this as a child in the pipe of content_features_export, so that when a filefield instance is exported, this setting was published along with it.
File
- ./
taxonomy_xml.features.inc, line 46
Code
function taxonomy_xml_source_features_export($data, &$export, $module_name = '') {
$export['dependencies']['filefield_paths'] = 'taxonomy_xml';
$taxonomy_xml_services = taxonomy_xml_services();
$taxonomy_xml_services += variable_get('taxonomy_xml_imports', array());
foreach ($data as $identifier) {
if ($taxonomy_xml_services[$identifier]) {
$export['features']['taxonomy_xml_source'][$identifier] = $identifier;
}
}
}