function rules_prepare_render in Rules 6
Propagates the #rule property down the tree and set #sorted, as we have already sorted the rule.
1 call to rules_prepare_render()
- theme_rules_admin_rule_render in rules_admin/
rules_admin.render.inc - Adds surrounding elements like headlines for conditions and actions and renders the rule
File
- rules_admin/
rules_admin.render.inc, line 66 - Rules Admin UI Functions for rendering a rule. If a rule is viewed, it's passed to drupal_get_form so it is rendered with drupal_render().
Code
function rules_prepare_render(&$elements) {
foreach (element_children($elements) as $key) {
$elements[$key]['#rule'] = $elements['#rule'];
$elements[$key]['#sorted'] = TRUE;
rules_prepare_render($elements[$key]);
}
}