function themekey_features_save_rule_childs in ThemeKey 7
Same name and namespace in other branches
- 6.4 themekey_features.module \themekey_features_save_rule_childs()
- 6.3 themekey_features.module \themekey_features_save_rule_childs()
- 7.3 themekey_features.module \themekey_features_save_rule_childs()
- 7.2 themekey_features.module \themekey_features_save_rule_childs()
Takes a serialized ThemeKey Rule Chain as created by themekey_features_load_rule_childs() and replaces the current one in the database eith it.
Parameters
$childs: serialized ThemeKey Rule Chain as array
$parent: internal use in recursion
1 call to themekey_features_save_rule_childs()
File
- ./
themekey_features.module, line 162
Code
function themekey_features_save_rule_childs($childs, $parent = 0) {
module_load_include('inc', 'themekey', 'themekey_build');
foreach ($childs as $child) {
$child['rule']['parent'] = $parent;
themekey_rule_set($child['rule']);
themekey_features_save_rule_childs($child['childs'], $child['rule']['id']);
}
}