You are here

function themekey_features_rule_chain_features_disable_feature in ThemeKey 7.2

Same name and namespace in other branches
  1. 7.3 themekey_features.module \themekey_features_rule_chain_features_disable_feature()

Implements hook_features_disable_feature().

1 call to themekey_features_rule_chain_features_disable_feature()
themekey_features_rule_chain_features_revert in ./themekey_features.module
Implements hook_features_revert().

File

./themekey_features.module, line 90

Code

function themekey_features_rule_chain_features_disable_feature($module) {
  module_load_include('inc', 'themekey', 'themekey_build');
  $rules = themekey_load_rules();
  foreach ($rules as $id => $rule) {
    if ($rule['module'] == $module) {
      themekey_rule_disable($id);
    }
  }
}