function _select2_default_settings in Select 2 7
Default settings.
Return value
array Default settings.
3 calls to _select2_default_settings()
- select2_get_settings_ajax in includes/
ajax.inc - Ajax settings.
- select2_select_element_process in ./
select2.module - Select element process.
- _select2_post_load_library_callback in ./
select2.module - Sets the 'post-load callback' key.
File
- ./
select2.module, line 1208 - Main file for Select2 module.
Code
function _select2_default_settings() {
return array(
'separator' => SELECT2_VALUES_SEPARATOR,
'jqui_sortable' => FALSE,
'dropdownAutoWidth' => TRUE,
'width' => variable_get('select2_default_width', 'element'),
'containerCssClass' => '',
'minimumResultsForSearch' => variable_get('select2_min_options_count_for_search', 15),
);
}