function microdata_mappings_features_export in Microdata 7
Implements hook_features_export().
File
- ./
microdata.features.inc, line 25 - Provides Features integration for microdata.
Code
function microdata_mappings_features_export($data, &$export, $module_name = '') {
// A feature exporting microdata will need the microdata module.
$export['dependencies']['microdata'] = 'microdata';
foreach ($data as $value) {
$parts = explode('-', $value);
$entity_type = $parts[0];
$bundle_type = $parts[1];
$export['features']['microdata_mappings'][$entity_type . '-' . $bundle_type] = $entity_type . '-' . $bundle_type;
}
return array();
}