function _lang_dropdown_get_chosen_path in Language Switcher Dropdown 7.2
Get the location of the chosen library.
Return value
bool|string The location of the library, or FALSE if the library isn't installed.
3 calls to _lang_dropdown_get_chosen_path()
- lang_dropdown_block_configure in ./
lang_dropdown.module - Implements hook_block_configure().
- lang_dropdown_form in ./
lang_dropdown.module - Function to build the select widget form.
- _lang_dropdown_validate_output_value in ./
lang_dropdown.module - Validates output value.
File
- ./
lang_dropdown.module, line 994 - Language dropdown select module main file.
Code
function _lang_dropdown_get_chosen_path() {
$path = FALSE;
if (function_exists('libraries_get_path') && libraries_get_path('chosen')) {
$path = libraries_get_path('chosen');
if (!file_exists($path)) {
$path = FALSE;
}
}
elseif (file_exists('sites/all/libraries/chosen/chosen.jquery.min.js')) {
$path = 'sites/all/libraries/chosen';
}
return $path;
}