function themekey_rule_get in ThemeKey 7.3
Same name and namespace in other branches
- 6.4 themekey_build.inc \themekey_rule_get()
- 6.2 themekey_build.inc \themekey_rule_get()
- 6.3 themekey_build.inc \themekey_rule_get()
- 7 themekey_build.inc \themekey_rule_get()
- 7.2 themekey_build.inc \themekey_rule_get()
Loads ThemeKey rule from database.
Parameters
$id: id of the rule to be loaded from database
Return value
the rule as associative array or NULL
2 calls to themekey_rule_get()
- themekey_features_load_rule_childs in ./
themekey_features.module - Loads current ThemeKey Rule Chain as array. The difference compared to themekey_load_rules() is, that database stuff like ids, parent ids and weights are stripped for export.
- themekey_format_rule_as_string in ./
themekey_base.inc - @todo Please document this function.
File
- ./
themekey_build.inc, line 501 - 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_get($id) {
return themekey_abstract_rule_get('themekey_properties', $id);
}