function chosen_get_chosen_path in Chosen 7.3
Same name and namespace in other branches
- 7.2 chosen.module \chosen_get_chosen_path()
Implementation of chosen_get_chosen_path().
Get the location of the chosen library.
Return value
The location of the library, or FALSE if the library isn't installed.
TODO: support library by plugin.
1 call to chosen_get_chosen_path()
- chosen_requirements in ./
chosen.install - Implements hook_requirements().
File
- ./
chosen.module, line 430 - General functions and hook implementations.
Code
function chosen_get_chosen_path() {
$path = FALSE;
if (function_exists('libraries_get_path')) {
$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;
}