You are here

function select2_element_info in Select 2 7

Implements hook_element_info().

File

./select2.module, line 187
Main file for Select2 module.

Code

function select2_element_info() {
  return array(
    'select2_hidden' => array(
      '#input' => TRUE,
      '#process' => array(
        'select2_select_element_process',
      ),
      '#theme' => array(
        'select2_hidden',
      ),
      '#theme_wrapper' => 'form_element',
      '#select2' => array(
        'separator' => SELECT2_VALUES_SEPARATOR,
      ),
      '#value_callback' => 'select_2_hidden_value_callback',
    ),
  );
}