function chosen_pre_render_select_or_other in Chosen 7.2
Render API callback: Apply Chosen to a select_or_other element.
1 string reference to 'chosen_pre_render_select_or_other'
- chosen_element_info_alter in ./
chosen.module - Implements hook_element_info_alter().
File
- ./
chosen.module, line 270 - General functions and hook implementations.
Code
function chosen_pre_render_select_or_other($element) {
if ($element['#select_type'] == 'select' && isset($element['#chosen'])) {
$element['select']['#chosen'] = $element['#chosen'];
}
return $element;
}