You are here

function rules_sort_elements in Rules 6

Recursively sorts the elements with rules_sort_children().

2 calls to rules_sort_elements()
rules_admin_rule_proxy::save_rule in rules_admin/rules_admin.rule_proxy.inc
Saves a the rule in the database
rules_import_workflow_ng_rule in rules/rules.install
Transform a workflow-ng rule into a rule

File

rules/rules.module, line 364
Rules engine module

Code

function rules_sort_elements(&$elements) {
  rules_sort_children($elements);
  foreach (element_children($elements) as $key) {
    rules_sort_elements($elements[$key]);
  }
}