function taxonomy_xml_features_api in Taxonomy import/export via XML 7
Same name and namespace in other branches
- 6.2 taxonomy_xml.module \taxonomy_xml_features_api()
Implementation of hook_features_api().
taxonomy_xml 'features' are full taxonomy source definitions. Enabling a taxonomy_xml feature will install the remote vocabulary for us.
The 'component' for this module is named 'taxonomy_xml_source' not just 'taxonomy_xml_source' to follow recommended practice documented in features. api
File
- ./
taxonomy_xml.module, line 1294 - Make it possible to import and export taxonomies as XML documents.
Code
function taxonomy_xml_features_api() {
return array(
'taxonomy_xml_source' => array(
'name' => t('Taxonomy Import (taxonomy_xml)'),
'default_hook' => 'taxonomy_xml_source_default_items',
'feature_source' => TRUE,
//'default_file' => FEATURES_DEFAULTS_INCLUDED,
// Save the settings along with the normal features taxonomy export. Don't need a new file
'default_file' => FEATURES_DEFAULTS_CUSTOM,
'default_filename' => 'features.taxonomy',
'file' => drupal_get_path('module', 'taxonomy_xml') . '/taxonomy_xml.features.inc',
),
);
}