function jqmulti_get_library_files in jQuery Multi 7
Same name and namespace in other branches
- 6 jqmulti.module \jqmulti_get_library_files()
Returns a list of files for a given library. This is not a part of Libraries API for D6.
3 calls to jqmulti_get_library_files()
- jqmulti_get_files in ./
jqmulti.module - Returns a list of files that should be loaded with the second jQuery.
- jqmulti_get_version in ./
jqmulti.module - Gets the version of jQuery to load.
- jqmulti_get_version in ./
jqmulti.api.php - Gets the version of jQuery to load.
File
- ./
jqmulti.module, line 150 - Code for the jQuery Multi module.
Code
function jqmulti_get_library_files($library, $reset = FALSE) {
$base_path = 'sites/all/libraries';
$path = $base_path . '/' . $library;
// check whether list of files is in cache
if (!$reset && ($cache = cache_get('jqmulti_files_' . $library))) {
return $cache->data;
}
// find list of js files for that library
$files = jqmulti_find_all_js_files($path);
cache_set('jqmulti_files_' . $library, $files);
return $files;
}