function themekey_features_rule_chain_features_revert in ThemeKey 7.2
Same name and namespace in other branches
- 6.4 themekey_features.module \themekey_features_rule_chain_features_revert()
- 6.3 themekey_features.module \themekey_features_rule_chain_features_revert()
- 7.3 themekey_features.module \themekey_features_rule_chain_features_revert()
- 7 themekey_features.module \themekey_features_rule_chain_features_revert()
Implements hook_features_revert().
File
- ./
themekey_features.module, line 104
Code
function themekey_features_rule_chain_features_revert($module) {
// delete all rules related to this feature,
// except that the administrator added childs
themekey_features_graceful_rule_deletion($module);
// disable all remaining rules related to this feature,
// including childs added by the administrator
themekey_features_rule_chain_features_disable_feature($module);
// now re-enable or re-create all rules from
// exported feature in an unmodified state
$rules = module_invoke($module, 'themekey_features_rule_chain');
themekey_features_save_rule_childs($module, $rules, TRUE);
}