function themekey_rule_set in ThemeKey 7.3
Same name and namespace in other branches
- 6.4 themekey_build.inc \themekey_rule_set()
- 6.2 themekey_build.inc \themekey_rule_set()
- 6.3 themekey_build.inc \themekey_rule_set()
- 7 themekey_build.inc \themekey_rule_set()
- 7.2 themekey_build.inc \themekey_rule_set()
Stores ThemeKey rules in database. It creates a new dataset or updates an existing one.
Parameters
$item: reference to an associative array containing a ThemeKey rule structure:
- id
- property
- operator
- value
- weight
- theme
- enabled
- wildcards
- parent
$module: name of the module that sets the item
Throws
2 calls to themekey_rule_set()
- themekey_features_save_rule_childs in ./
themekey_features.module - Takes a serialized ThemeKey Rule Chain as created by themekey_features_load_rule_childs() and adds it to the current one in the database with it. Conflicting rules will be stored as well, but disabled.
- themekey_ui_set_path_theme in ./
themekey_ui_helper.inc - Saves a theme assigned to a path alias as ThemeKey rule
1 string reference to 'themekey_rule_set'
- themekey_rule_chain_form_submit in ./
themekey_admin.inc - Form submission handler for themekey_rule_chain_form().
File
- ./
themekey_build.inc, line 345 - The functions in this file are the back end of ThemeKey which should be used only if you configure something, but not when ThemeKey switches themes.
Code
function themekey_rule_set(&$item, $module = 'themekey') {
themekey_abstract_rule_set('themekey_properties', $item, $module);
}