function rules_forms_element_properties in Rules Forms Support 7.2
Returns an array of attribute property info for a specific form element type.
Parameters
string $element_type: The form element type. This is an element type defined in hook_rules_forms_element_info().
1 call to rules_forms_element_properties()
- rules_forms_rules_forms_element_info in includes/
rules_forms.info.inc - Implements hook_rules_forms_element_info().
File
- includes/
rules_forms.info.inc, line 209 - Implements Rules Forms hooks.
Code
function rules_forms_element_properties($element_type) {
$attribute_info = _rules_forms_attribute_info();
$attributes = array();
foreach ($attribute_info as $attribute => $info) {
if ($info['attribute info']['elements'] == 'all' || in_array($element_type, $info['attribute info']['elements'])) {
$attributes[$attribute] = _rules_forms_build_element_property($info);
}
}
return $attributes;
}