function select_or_other_element_info in Select (or other) 7.2
Same name and namespace in other branches
- 7.3 select_or_other.module \select_or_other_element_info()
Implements hook_element_info().
File
- ./
select_or_other.module, line 48 - The Select (or other) module.
Code
function select_or_other_element_info() {
return array(
'select_or_other' => array(
'#select_type' => 'select',
'#input' => TRUE,
'#multiple' => FALSE,
'#disabled' => FALSE,
'#default_value' => NULL,
'#process' => array(
'select_or_other_element_process',
),
'#element_validate' => array(
'select_or_other_element_validate',
),
'#other' => t('Other'),
'#theme' => 'select_or_other',
'#theme_wrappers' => array(
'form_element',
),
),
);
}