function ctools_dependent_element_info_alter
CTools alters the element_info to be able to add #process functions to every major form element to make it much more handy to use #dependency, because you don't have to add #process.
1 call to ctools_dependent_element_info_alter()
- ctools_element_info_alter in ./
ctools.module - Implements hook_element_info_alter().
File
-
includes/
dependent.inc, line 179
Code
function ctools_dependent_element_info_alter(&$type) {
$form_elements = array(
'checkbox',
'checkboxes',
'date',
'fieldset',
'item',
'machine_name',
'markup',
'radio',
'radios',
'select',
'textarea',
'textfield',
'text_format',
);
foreach ($form_elements as $element) {
$type[$element]['#pre_render'][] = 'ctools_dependent_pre_render';
}
}