function rules_admin_rule_proxy::clean_rule in Rules 6
Cleans the given rule. This means, array keys that are neither elements nor properties are removed.
File
- rules_admin/
rules_admin.rule_proxy.inc, line 172 - Contains the rules proxy class
Class
- rules_admin_rule_proxy
- This is a smally proxy for the real rule. It provides some useful operations for the admin UI. It builds a small index for the elements of a rule, so that they can be easily identified and modified.
Code
function clean_rule() {
$rule =& $this
->get_rule();
$this
->_clean_rule($rule['#conditions']);
$this
->_clean_rule($rule['#actions']);
}