function rules_admin_get_compatible_sets in Rules 6
Gets all compatible sets, which means that all arguments are available in the other set too
1 call to rules_admin_get_compatible_sets()
- rules_admin_form_rule_settings in rules_admin/
rules_admin.rule_forms.inc - Returns the form for the settings of a rule
File
- rules_admin/
rules_admin.inc, line 45
Code
function rules_admin_get_compatible_sets($rule, $sets) {
if (isset($rule['#set']) && $rule['#set']) {
$set = rules_get_rule_sets($rule['#set']);
foreach ($sets as $key => $this_set) {
if (array_diff(array_keys($set['arguments']), array_keys($this_set['arguments']))) {
unset($sets[$key]);
}
}
}
return $sets;
}