function chosen_field_widget_info_alter in Chosen 6
Same name and namespace in other branches
- 7 chosen.module \chosen_field_widget_info_alter()
- 7.2 chosen.module \chosen_field_widget_info_alter()
Implements hook_field_widget_info_alter().
A list of settings needed by Chosen module for widgets.
File
- ./
chosen.module, line 66 - General functions and hook implementations.
Code
function chosen_field_widget_info_alter(&$info) {
$settings = array(
'apply_chosen' => 0,
);
if (isset($info[CHOSEN_WIDGET]['settings'])) {
$info[CHOSEN_WIDGET]['settings'] += $settings;
}
}