You are here

function juicebox_libraries_info in Juicebox HTML5 Responsive Image Galleries 7.2

Same name and namespace in other branches
  1. 8.2 juicebox.module \juicebox_libraries_info()
  2. 7 juicebox.module \juicebox_libraries_info()

Implements hook_libraries_info().

File

./juicebox.module, line 70
Provides Drupal integration with the Juicebox library. This file contains the relevant Drupal hook implementations and callbacks.

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,
          'group' => JS_LIBRARY,
          'scope' => variable_get('juicebox_js_scope', 'header'),
        ),
      ),
    ),
    'callbacks' => array(
      'info' => array(
        'juicebox_library_info',
      ),
      'post-detect' => array(
        'juicebox_library_post_detect',
      ),
    ),
  );
  return $libraries;
}