You are here

function rules_forms_filter_element_properties in Rules Forms Support 7.2

Returns an array of element properties based on existing attributes.

1 call to rules_forms_filter_element_properties()
RulesFormsFormEvaluator::buildPropertyInfo in includes/rules_forms.property.inc
Builds form element property info.

File

includes/rules_forms.info.inc, line 223
Implements Rules Forms hooks.

Code

function rules_forms_filter_element_properties($element) {
  $attribute_info = _rules_forms_attribute_info();
  $attributes = array();
  foreach (element_properties($element) as $attribute => $info) {
    if (isset($attribute_info[$attribute])) {
      $attributes[$attribute] = _rules_forms_build_element_property($info);
    }
  }
  return $attributes;
}