function respondjs_get_library_path in Respond.js 7
Helper function gets the path to the library directory
1 call to respondjs_get_library_path()
- respondjs_get_library_file in ./
respondjs.module - Helper function gets the path to the library Javascript file
File
- ./
respondjs.module, line 82 - Main file for the Respond.js module
Code
function respondjs_get_library_path() {
$default_path = drupal_get_path('module', 'respondjs') . '/lib';
// If Libraries API is enabled, make sure the file exists before pointing there
if (function_exists('libraries_get_path') && file_exists(libraries_get_path('respondjs'))) {
$path = libraries_get_path('respondjs');
}
else {
if (file_exists($default_path)) {
$path = $default_path;
}
else {
$path = NULL;
}
}
return $path;
}