You are here

function select2_element_info_alter in Select 2 7

Implements hook_element_info_alter().

File

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

Code

function select2_element_info_alter(&$type) {
  if (isset($type['select'])) {
    $type['select']['#process'][] = 'select2_select_element_process';
  }
  if (isset($type['textfield'])) {
    $type['textfield']['#process'][] = 'select2_process_textfield';
  }
}