function _rules_get_setting in Rules 6
Returns a setting of a given name. For settings sitting a nested array the array keys may be separated by '|' in the name.
2 calls to _rules_get_setting()
- rules_apply_input_evaluators in rules/
rules.input_evaluators.inc - Applies the available input evaluator on the element.
- rules_prepare_input_evaluators in rules/
rules.input_evaluators.inc - Prepares the available input evaluator on the element.
File
- rules/
rules.input_evaluators.inc, line 86 - Rules input evaluation system.
Code
function &_rules_get_setting(&$settings, $name) {
$names = explode('|', $name);
$setting =& $settings;
foreach ($names as $name) {
$setting =& $setting[$name];
}
return $setting;
}