You are here

function _rules_import_replace_module_name in Rules 6

2 calls to _rules_import_replace_module_name()
rules_import_workflow_ng_rule in rules/rules.install
Transform a workflow-ng rule into a rule
_rules_import_transform_element in rules/rules.install
Transforms a single element to be compatible with workflow-ng

File

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

Code

function _rules_import_replace_module_name($string) {
  $search = array();
  $replace = array();
  $search[] = 'worklfow_ng_ui';
  $replace[] = 'rules';
  $search[] = 'workflow_ng';
  $replace[] = 'rules';
  $search[] = 'Workflow-ng';
  $replace[] = 'Rules';
  $search[] = 'Workflow-ng';
  $replace[] = 'Rules';
  return str_replace($search, $replace, $string);
}