function variable_realm_features_rebuild in Variable 7.2
Same name and namespace in other branches
- 7 variable_realm/variable_realm.features.inc \variable_realm_features_rebuild()
Implements hook_features_rebuild().
1 call to variable_realm_features_rebuild()
- variable_realm_features_revert in variable_realm/
variable_realm.features.inc - Implements hook_features_revert().
File
- variable_realm/
variable_realm.features.inc, line 94 - Features support for Variable store.
Code
function variable_realm_features_rebuild($module) {
if ($defaults = variable_realm_features_load($module, 'variable_realm_default_variables', TRUE)) {
foreach ($defaults as $realm => $realm_data) {
foreach ($realm_data as $key => $variables) {
$variable_realm = variable_realm($realm, $key);
foreach ($variables as $name => $value) {
$variable_realm
->variable_set($name, $value);
}
}
}
}
}