function rules_upgrade_convert_rule
Converts a single reaction rule.
1 call to rules_upgrade_convert_rule()
- rules_upgrade_form_submit in includes/
rules.upgrade.inc - Submit handler for the form.
File
-
includes/
rules.upgrade.inc, line 179
Code
function rules_upgrade_convert_rule($name, $cfg_old) {
$config = rules_upgrade_plugin_factory($cfg_old);
$config->name = $name;
if ($config instanceof RulesReactionRule) {
rules_upgrade_convert_element($cfg_old, $config);
}
return $config;
}