function views_showcase_get_libraries in Views Showcase 7
Same name and namespace in other branches
- 6.2 views_showcase.module \views_showcase_get_libraries()
Function to check and retreive libraries.
1 call to views_showcase_get_libraries()
- template_preprocess_views_showcase_view in ./
views_showcase.module - Implementation of template preprocess for the view.
File
- ./
views_showcase.module, line 198 - The implementation of Views Showcase module.
Code
function views_showcase_get_libraries() {
$libraries['cycle'] = NULL;
$libraries['easing'] = NULL;
if ($path = libraries_get_path('cycle')) {
$file = reset(file_scan_directory($path, "/.*.js/"));
$libraries['cycle'] = $file->uri;
}
if ($path = libraries_get_path('easing')) {
$file = reset(file_scan_directory($path, "/.*.js/"));
$libraries['easing'] = $file->uri;
}
return $libraries;
}