function views_showcase_get_libraries in Views Showcase 6.2
Same name and namespace in other branches
- 7 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 17 - The implementation of Views Showcase module.
Code
function views_showcase_get_libraries() {
$libraries['cycle'] = NULL;
$libraries['easing'] = NULL;
if ($path = libraries_get_path('cycle')) {
$filename = reset(file_scan_directory($path, ".*.js"));
$libraries['cycle'] = $filename->filename;
}
if ($path = libraries_get_path('easing')) {
$filename = reset(file_scan_directory($path, ".*.js"));
$libraries['easing'] = $filename->filename;
}
return $libraries;
}