function rules_admin_map_get_possible_arguments in Rules 6
Gets the possible variables (= of the same entity) for an argument
2 calls to rules_admin_map_get_possible_arguments()
- rules_admin_argument_satisifable in rules_admin/
rules_admin.inc - Determines whether the argument can be configured properly, so whether there are matching variables available or needed.
- rules_admin_default_argument_form in rules_admin/
rules_admin.rule_forms.inc - Returns the argument form for the given element
File
- rules_admin/
rules_admin.inc, line 189
Code
function rules_admin_map_get_possible_arguments($arg_info, $variables) {
$matches = array();
foreach ($variables as $name => $info) {
if (rules_admin_is_valid_data_type($info['type'], $arg_info)) {
$matches[$name] = $info['label'];
}
}
return $matches;
}