You are here

function key_element_info in Key 7.2

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

Implements hook_element_info().

File

./key.module, line 128
Provides the ability to manage keys, which can be used by other modules.

Code

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