function rules_admin_rule_proxy::get_available_variables in Rules 6
Gets info about all available variables This are the arguments of the rule's set as well as further arguments that might be provided by actions of this or preceding rules. Variables set to be hidden are left out.
Parameters
$id The id of the element of the current rule until which we should get new variables.: If not given all new variables of this rule will be considered.
File
- rules_admin/
rules_admin.rule_proxy.inc, line 250 - 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_available_variables($id = NULL) {
$set_info = $this
->get_set_info();
$vars = $this
->get_new_variables($id) + $this
->_get_available_variables() + $set_info['arguments'];
return array_filter($vars, 'rules_admin_element_filter');
}