You are here

function key_element_info in Key 7.3

Same name and namespace in other branches
  1. 7 key.module \key_element_info()
  2. 7.2 key.module \key_element_info()

Implements hook_element_info().

File

./key.module, line 184
Main Key functionality and hook implementations.

Code

function key_element_info() {
  $type['key_select'] = array(
    '#input' => TRUE,
    '#size' => 0,
    '#multiple' => FALSE,
    '#process' => array(
      '_key_process_key_select',
      'form_process_select',
      'ajax_process_form',
    ),
    '#theme' => 'select',
    '#theme_wrappers' => array(
      'form_element',
    ),
    '#options' => array(),
    // Allow filtering of the list of key configurations.
    '#key_filters' => array(),
    '#key_description' => TRUE,
  );
  return $type;
}