function form_builder_get_properties in Form Builder 6
Same name and namespace in other branches
- 7 includes/form_builder.api.inc \form_builder_get_properties()
Get a list of all properties that are supported within a form type.
1 call to form_builder_get_properties()
- form_builder_get_element_properties in includes/
form_builder.api.inc - Given an element type, return properties that are supported by Form builder.
File
- includes/
form_builder.api.inc, line 11 - form_builder.api.inc Universally used API functions within the Form builder module.
Code
function form_builder_get_properties($form_type, $reset = FALSE) {
static $properties = array();
if ($reset) {
$properties = array();
}
if (!isset($properties[$form_type])) {
// Get the list of all properties for all elements.
foreach (module_implements('form_builder_properties') as $module) {
$properties = array_merge($properties, module_invoke($module, 'form_builder_properties', $form_type));
}
drupal_alter('form_builder_properties', $properties, $form_type);
}
return $properties;
}