function _lang_dropdown_get_msdropdown_path in Language Switcher Dropdown 7.2
Get the location of the msdropdown library.
Return value
bool|string The location of the library, or FALSE if the library isn't installed.
3 calls to _lang_dropdown_get_msdropdown_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 1014 - Language dropdown select module main file.
Code
function _lang_dropdown_get_msdropdown_path() {
$path = FALSE;
if (function_exists('libraries_get_path') && libraries_get_path('msdropdown')) {
$path = libraries_get_path('msdropdown');
if (!file_exists($path)) {
$path = FALSE;
}
}
elseif (file_exists('sites/all/libraries/ms-Dropdown/js/msdropdown/jquery.dd.min.js')) {
$path = 'sites/all/libraries/ms-Dropdown';
}
return $path;
}