You are here

function themekey_format_rule_as_string in ThemeKey 7.3

Same name and namespace in other branches
  1. 6.4 themekey_base.inc \themekey_format_rule_as_string()
  2. 6.2 themekey_base.inc \themekey_format_rule_as_string()
  3. 6.3 themekey_base.inc \themekey_format_rule_as_string()
  4. 7 themekey_base.inc \themekey_format_rule_as_string()
  5. 7.2 themekey_base.inc \themekey_format_rule_as_string()

@todo Please document this function.

See also

http://drupal.org/node/1354

2 calls to themekey_format_rule_as_string()
themekey_admin_delete_rule_confirm in ./themekey_admin.inc
Menu callback -- ask for confirmation of ThemeKey rule deletion
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.
1 string reference to 'themekey_format_rule_as_string'
themekey_match_rules in ./themekey_base.inc
This function steps through the rule chain and returns a theme.

File

./themekey_base.inc, line 580
The functions in this file are the back end of ThemeKey.

Code

function themekey_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_rule_get($themekey_property_id),
  ));
}