You are here

function _rules_import_get_set in Rules 6

1 call to _rules_import_get_set()
rules_import_workflow_ng_rule in rules/rules.install
Transform a workflow-ng rule into a rule

File

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

Code

function _rules_import_get_set($cfg) {
  $map = rules_gather_data('rules_upgrade_event_map', 'all', FALSE);
  $event = isset($map[$cfg['#event']]) ? $map[$cfg['#event']] : $cfg['#event'];
  return 'event_' . $event;
}