function select2_preprocess_page in Select 2 7
Implements hook_preprocess_page().
File
- ./
select2.module, line 54 - Main file for Select2 module.
Code
function select2_preprocess_page($vars) {
if (variable_get('select2_use_for_all_select_elements', FALSE)) {
if (!_select2_current_path_is_admin() || _select2_current_path_is_admin() && variable_get('select2_use_for_all_select_elements_for_admin_pages', FALSE)) {
$variant = variable_get('select2_compression_type', 'minified');
libraries_load('select2', $variant);
}
}
}