function rules_upgrade_element_variable_settings
Converts the settings for a given variable.
7 calls to rules_upgrade_element_variable_settings()
- rules_action_add_node_upgrade in includes/
rules.upgrade.inc - rules_action_load_comment_upgrade in includes/
rules.upgrade.inc - rules_action_load_node_upgrade in includes/
rules.upgrade.inc - rules_action_load_user_upgrade in includes/
rules.upgrade.inc - rules_action_save_variable_upgrade in includes/
rules.upgrade.inc
File
-
includes/
rules.upgrade.inc, line 374
Code
function rules_upgrade_element_variable_settings($element, $target, $name, $new_name = NULL) {
if (!isset($new_name)) {
$new_name = $name;
}
if (isset($element['#settings']['#argument map'][$name])) {
$target->settings[$new_name . ':var'] = $element['#settings']['#argument map'][$name];
$target->settings[$new_name . ':label'] = $element['#info']['new variables'][$target->settings[$new_name . ':var']]['label'];
}
}