function jquery_countdown_get_path in jQuery Countdown 6
Return the path to the jQuery.Countdown plugin.
2 calls to jquery_countdown_get_path()
- jquery_countdown_get_css in ./
jquery_countdown.module - Return the CSS filename of the jQuery.Countdown plugin library
- jquery_countdown_get_js in ./
jquery_countdown.module - Return the JS filename of the jQuery.Countdown plugin library.
File
- ./
jquery_countdown.module, line 172 - provides the jquery_countdown theme function and serversync callback
Code
function jquery_countdown_get_path() {
static $library_path = NULL;
// Try to locate the library path in any possible setup.
if ($library_path == NULL) {
// First check the default location.
$path = JQUERY_COUNTDOWN_PATH;
if (is_dir($path)) {
$library_path = $path;
}
elseif ($library_path == NULL && module_exists('libraries')) {
if ($path = libraries_get_path('jquery.countdown')) {
$library_path = $path;
}
}
}
return $library_path;
}