You are here

function rules_admin_element_map_variable_name in Rules 6

Gets the variable, which is assigned (mapped) to the given argument.

1 call to rules_admin_element_map_variable_name()
rules_admin_default_argument_form in rules_admin/rules_admin.rule_forms.inc
Returns the argument form for the given element

File

rules_admin/rules_admin.inc, line 12

Code

function rules_admin_element_map_variable_name($name, $element) {
  if (!isset($element['#settings']['#argument map'])) {

    //per default try the the same name
    return $name;
  }
  $map = $element['#settings']['#argument map'];
  return isset($map[$name]) ? $map[$name] : $name;
}