function schemaorg_features_rebuild in Schema.org 7
Implementation of hook_features_rebuild().
Updates faux-exportable components back to their default state.
1 call to schemaorg_features_rebuild()
- schemaorg_features_revert in ./
schemaorg.features.inc - Implementation of hook_features_revert().
File
- ./
schemaorg.features.inc, line 89
Code
function schemaorg_features_rebuild($module) {
if ($defaults = features_get_default('schemaorg', $module)) {
foreach ($defaults as $entity_type => $bundles) {
foreach ($bundles as $bundle => $mapping) {
rdf_mapping_save(array(
'type' => $entity_type,
'bundle' => $bundle,
'mapping' => $mapping,
));
}
}
}
}