You are here

function themekey_css_rule_set in ThemeKey 7.3

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

ThemeKeyRuleConflictException

1 string reference to 'themekey_css_rule_set'
themekey_css_rule_chain_form_submit in themekey_css/themekey_css_admin.inc
Form submission handler for themekey_rule_chain_form().

File

themekey_css/themekey_css_build.inc, line 72
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_css_rule_set(&$item, $module = 'themekey_css') {
  themekey_abstract_rule_set('themekey_css_rules', $item, $module);
}