You are here

function rules_admin_rule_proxy::get_defined_variables in Rules 6

Gets info about all defined variables This are all available variables as well as variables defined in and after this rule.

File

rules_admin/rules_admin.rule_proxy.inc, line 260
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_defined_variables() {
  $set_info = $this
    ->get_set_info();
  $vars = $this
    ->_get_available_variables(TRUE) + $set_info['arguments'];
  return array_filter($vars, 'rules_admin_element_filter');
}