You are here

function rules_admin_rule_proxy::get_set in Rules 6

Gets the set of this rule, which contains only active rules.

1 call to rules_admin_rule_proxy::get_set()
rules_admin_rule_proxy::_get_available_variables in rules_admin/rules_admin.rule_proxy.inc
Gets new variables defined by actions in rules, which are evaluated until this rule.

File

rules_admin/rules_admin.rule_proxy.inc, line 200
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 get_set() {
  $rule = $this
    ->get_rule();
  $set = rules_get_rule_set($rule['#set']);
  return $set ? $set : array(
    'info' => array(),
    'rules' => array(),
  );
}