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