You are here

function rules_admin_elements_get_logical_ops in Rules 6

Returns a list of available logical operations suitable for use with #options

1 call to rules_admin_elements_get_logical_ops()
rules_admin_form_edit_op in rules_admin/rules_admin.rule_forms.inc
Returns the edit form of a logical operation

File

rules_admin/rules_admin.rule_forms.inc, line 898

Code

function rules_admin_elements_get_logical_ops() {
  $elements = rules_gather_data('elements');
  $labels = array_map('rules_get_element_label', array_filter($elements, '_rules_admin_element_is_logical_op'));
  asort($labels);
  return $labels;
}