You are here

function chosen_element_info_alter in Chosen 7.3

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

Implements hook_element_info_alter().

Adds a prerender Function which will be called to supported widgets in order to be able to provide settings per fieldinstance.

TODO: This has to be generated out of the plugins.

File

./chosen.module, line 368
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_select';
  }
}