You are here

function microdata_mappings_features_rebuild in Microdata 7

Implements hook_features_rebuild().

1 call to microdata_mappings_features_rebuild()
microdata_mappings_features_revert in ./microdata.features.inc
Implements hook_features_revert().

File

./microdata.features.inc, line 91
Provides Features integration for microdata.

Code

function microdata_mappings_features_rebuild($module) {
  if ($defaults = features_get_default('microdata_mappings', $module)) {
    foreach ($defaults as $entity_type => $bundles) {
      foreach ($bundles as $bundle_type => $mapping) {
        microdata_save_mapping($entity_type, $bundle_type, $mapping);
      }
    }
  }
}