function rules_extract_property in Rules 6
Same name and namespace in other branches
- 7.2 rules.module \rules_extract_property()
Extracts the property with the given name while keeping the keys
Parameters
$key The name of the property to extract:
$elements An array of elements:
Return value
An array of extracted properties.
1 call to rules_extract_property()
- _rules_admin_form_argument in rules_admin/
rules_admin.sets.inc
File
- rules/
rules.module, line 132 - Rules engine module
Code
function rules_extract_property($elements, $key) {
$data = array();
foreach ($elements as $name => $info) {
$data[$name] = $info[$key];
}
return $data;
}