function themekey_redirect_rule_get in ThemeKey 7.3
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
1 call to themekey_redirect_rule_get()
- themekey_redirect_format_rule_as_string in themekey_redirect/
themekey_redirect.module
File
- themekey_redirect/
themekey_redirect.module, line 134 - Define rules to redirect the user to a different domain. The common use-case is to setup sub-domains for mobile sites. In this case you can configure ThemeKey Redirect to detect mobile clients and redirect the user accordingly. In ThemeKey itself you…
Code
function themekey_redirect_rule_get($id) {
return themekey_abstract_rule_get('themekey_redirect_rules', $id);
}