function chosen_field_widget_info_alter in Chosen 7
Same name and namespace in other branches
- 6 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 67 - 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;
}
}