function cshs_element_info in Client-side Hierarchical Select 7
Implements hook_element_info().
File
- ./
cshs.element.inc, line 13
Code
function cshs_element_info() {
$type['cshs'] = array(
'#input' => TRUE,
'#multiple' => FALSE,
'#process' => array(
// Add process functions used for a regular select.
'form_process_select',
'ajax_process_form',
// And add our custom process function.
'cshs_element_process',
),
'#element_validate' => array(
'cshs_element_validate',
),
'#theme' => 'cshs_select',
'#theme_wrappers' => array(
'form_element',
),
// Custom attributes.
'#none_value' => CSHS_DEFAULT_NONE_VALUE,
'#none_label' => t(CSHS_DEFAULT_NONE_LABEL),
'#parent' => 0,
'#force_deepest' => FALSE,
'#labels' => array(),
'#label' => '',
);
return $type;
}