function conditional_fields_element_info_alter in Conditional Fields 7.3
Same name and namespace in other branches
- 8 conditional_fields.module \conditional_fields_element_info_alter()
- 4.x conditional_fields.module \conditional_fields_element_info_alter()
Implements hook_element_info_alter(). Adds an #after_build function to all form elements.
File
- ./
conditional_fields.module, line 207 - Define dependencies between fields based on their states and values.
Code
function conditional_fields_element_info_alter(&$types) {
foreach ($types as $type => $info) {
$types[$type]['#after_build'][] = 'conditional_fields_element_after_build';
}
}