You are here

function themekey_features_rule_chain_features_rebuild in ThemeKey 6.4

Same name and namespace in other branches
  1. 6.3 themekey_features.module \themekey_features_rule_chain_features_rebuild()
  2. 7 themekey_features.module \themekey_features_rule_chain_features_rebuild()

Implementation of hook_features_rebuild().

1 call to themekey_features_rule_chain_features_rebuild()
themekey_features_rule_chain_features_revert in ./themekey_features.module
Implementation of hook_features_revert().

File

./themekey_features.module, line 79

Code

function themekey_features_rule_chain_features_rebuild($module) {
  module_load_include('inc', 'themekey', 'themekey_build');
  db_query('TRUNCATE {themekey_properties}');
  themekey_rebuild();
  $rules = module_invoke($module, 'themekey_features_rule_chain_import');
  themekey_features_save_rule_childs($rules);

  // fast deletion of page cache (truncate)
  cache_clear_all('*', 'cache_page', TRUE);
  return TRUE;
}