function hierarchical_select_elements in Hierarchical Select 5.2
Same name and namespace in other branches
- 5.3 hierarchical_select.module \hierarchical_select_elements()
- 5 hierarchical_select.module \hierarchical_select_elements()
- 6.3 hierarchical_select.module \hierarchical_select_elements()
Implementation of hook_elements().
File
- ./
hierarchical_select.module, line 59 - This module defines the "hierarchical_select" form element, which is a greatly enhanced way for letting the user select an option in a hierarchy.
Code
function hierarchical_select_elements() {
$type['hierarchical_select'] = array(
'#input' => TRUE,
'#process' => array(
'hierarchical_select_process' => array(),
),
'#hierarchical_select_settings' => array(
'save_lineage' => FALSE,
'enforce_deepest' => FALSE,
'all_option' => FALSE,
'level_labels' => array(),
'params' => array(),
'animation_delay' => variable_get('hierarchical_select_animation_delay', 400),
'dropbox_title' => t('All selections'),
'dropbox_limit' => 0,
),
'#default_value' => -1,
);
return $type;
}