function select2_all_element_info_alter in Select2 ALL THE THINGS! 8
Implements hook_element_info_alter().
File
- ./
select2_all.module, line 14 - Hooks for the Select2 All module.
Code
function select2_all_element_info_alter(&$info) {
$info['select']['#pre_render'][] = [
Select2::class,
'preRenderSelect',
];
if (isset($info['date_combo'])) {
//$info['date_combo']['#pre_render'][] = [Select2::class, 'preRenderDateCombo'];
}
if (isset($info['select_or_other'])) {
//$info['select_or_other']['#pre_render'][] = [Select2::class, 'preRenderSelectOrOther'];
}
if (isset($info['synonyms_entity_select'])) {
$info['synonyms_entity_select']['#pre_render'][] = [
Select2::class,
'preRenderSelect',
];
}
}