You are here

function chosen_element_info_alter in Chosen 7.2

Same name and namespace in other branches
  1. 8.2 chosen.module \chosen_element_info_alter()
  2. 7.3 chosen.module \chosen_element_info_alter()
  3. 3.0.x chosen.module \chosen_element_info_alter()

Implements hook_element_info_alter().

File

./chosen.module, line 184
General functions and hook implementations.

Code

function chosen_element_info_alter(&$info) {
  $info['select']['#pre_render'][] = 'chosen_pre_render_select';
  if (module_exists('date')) {
    $info['date_combo']['#pre_render'][] = 'chosen_pre_render_date_combo';
  }
  if (module_exists('select_or_other')) {
    $info['select_or_other']['#pre_render'][] = 'chosen_pre_render_select_or_other';
  }
}