You are here

function select_or_other_elements in Select (or other) 6.2

Same name and namespace in other branches
  1. 6 select_or_other.module \select_or_other_elements()

Implementation of hook_elements().

File

./select_or_other.module, line 46
The Select (or other) module.

Code

function select_or_other_elements() {
  $type['select_or_other'] = array(
    '#select_type' => 'select',
    '#input' => TRUE,
    '#size' => 0,
    '#multiple' => FALSE,
    '#disabled' => FALSE,
    '#default_value' => NULL,
    '#process' => array(
      'select_or_other_process',
    ),
    '#element_validate' => array(
      'select_or_other_element_validate',
    ),
    '#other' => t('Other'),
    '#theme' => 'select_or_other',
  );
  $type['checkboxes'] = array(
    '#process' => array(
      'select_or_other_expand_checkboxes',
    ),
  );
  return $type;
}