function chosen_field_widget_info_alter in Chosen 7.2
Same name and namespace in other branches
- 6 chosen.module \chosen_field_widget_info_alter()
- 7 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 55 
- General functions and hook implementations.
Code
function chosen_field_widget_info_alter(&$info) {
  $widget_defaults = array(
    'options_select' => '',
    'select_or_other' => '',
    'date_combo' => 0,
  );
  foreach ($widget_defaults as $widget => $default) {
    if (isset($info[$widget])) {
      $info[$widget]['settings']['apply_chosen'] = $default;
    }
  }
}