function juicebox_libraries_info in Juicebox HTML5 Responsive Image Galleries 7
Same name and namespace in other branches
- 8.2 juicebox.module \juicebox_libraries_info()
- 7.2 juicebox.module \juicebox_libraries_info()
Implements hook_libraries_info().
File
- ./
juicebox.module, line 49 - Provides Drupal integration with the Juicebox library.
Code
function juicebox_libraries_info() {
$libraries['juicebox'] = array(
'name' => 'Juicebox',
'vendor url' => 'http://www.juicebox.net/',
'download url' => 'http://www.juicebox.net/download/',
'version arguments' => array(
'file' => 'juicebox.js',
'pattern' => '/Juicebox.([a-zA-Z]+[0-9\\.\\ -]+)/',
'lines' => 5,
),
'files' => array(
// 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' => array(
'juicebox.js' => array(
'preprocess' => FALSE,
),
),
),
'callbacks' => array(
'info' => array(
'_juicebox_library_info',
),
'post-detect' => array(
'_juicebox_library_post_detect',
),
),
);
return $libraries;
}