function juicebox_libraries_info in Juicebox HTML5 Responsive Image Galleries 8.2
Same name and namespace in other branches
- 7.2 juicebox.module \juicebox_libraries_info()
- 7 juicebox.module \juicebox_libraries_info()
Implements hook_libraries_info().
File
- ./
juicebox.module, line 81 - Module file for Juicebox.
Code
function juicebox_libraries_info() {
$libraries['juicebox'] = [
'name' => 'Juicebox',
'vendor url' => 'http://www.juicebox.net/',
'download url' => 'http://www.juicebox.net/download/',
'version arguments' => [
'file' => 'juicebox.js',
'pattern' => '/Juicebox.([a-zA-Z]+[0-9\\.\\ -]+)/',
'lines' => 5,
],
'files' => [
// Note that we do not want the Juicebox library javascript to be
// aggregated by Drupal (set preprocess option = FALSE). This is because
// some supporting library CSS files must be at a specific location
// RELATIVE to to the main js file. Aggregation breaks this.
'js' => [
'juicebox.js' => [
'preprocess' => FALSE,
'group' => JS_LIBRARY,
],
],
],
'callbacks' => [
'info' => [
'juicebox_library_add_info',
],
'post-detect' => [
'juicebox_library_post_detect',
],
],
];
return $libraries;
}