You are here

function _rules_element_flip_argument_map in Rules 6

1 string reference to '_rules_element_flip_argument_map'
rules_rule_format_upgrade_6003 in rules/rules.install
Upgrades the format of the rule to 6003 by flipping the argument maps of all rule elements.

File

rules/rules.install, line 148
Rules - Installation file.

Code

function _rules_element_flip_argument_map(&$element) {
  if (isset($element['#settings']['#argument map'])) {
    $element['#settings']['#argument map'] = array_flip($element['#settings']['#argument map']);
  }
}