function _photobox_library_path_js in PhotoboxPhotobox 7
Returns the path to the Photobox library js file.
1 call to _photobox_library_path_js()
- _photobox_library_version in ./
photobox.module - Returns version of the Photobox library.
File
- ./
photobox.module, line 359 - Main file for the Photobox module.
Code
function _photobox_library_path_js() {
$library_path_js =& drupal_static(__FUNCTION__, NULL);
if (is_null($library_path_js) && ($library_path = _photobox_library_path())) {
if (file_exists($library_path . '/jquery.photobox.js')) {
$library_path_js = $library_path . '/jquery.photobox.js';
}
elseif (file_exists($library_path . '/photobox.min.js')) {
$library_path_js = $library_path . '/photobox.min.js';
}
elseif (file_exists($library_path . '/photobox.js')) {
$library_path_js = $library_path . '/photobox.js';
}
}
return $library_path_js;
}