You are here

function select2_field_widget_info_alter in Select 2 7

Implements hook_field_widget_info_alter().

File

./select2.module, line 671
Main file for Select2 module.

Code

function select2_field_widget_info_alter(&$info) {
  if (!isset($info['options_select'])) {
    return;
  }
  $info['options_select']['settings']['use_select2'] = FALSE;
}