function themekey_redirect_format_rule_as_string in ThemeKey 7.3
1 call to themekey_redirect_format_rule_as_string()
- themekey_redirect_admin_delete_rule_confirm in themekey_redirect/
themekey_redirect_admin.inc - Menu callback -- ask for confirmation of ThemeKey rule deletion
1 string reference to 'themekey_redirect_format_rule_as_string'
- themekey_redirect_match_rules in themekey_redirect/
themekey_redirect.module
File
- themekey_redirect/
themekey_redirect.module, line 118 - 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_format_rule_as_string($themekey_property_id) {
module_load_include('inc', 'themekey', 'themekey_build');
return themekey_abstract_format_rule_as_string($themekey_property_id, array(
'rule' => themekey_redirect_rule_get($themekey_property_id),
));
}