You are here

function popup_onload_libraries_info in Popup On Load 7

Implements hook_libraries_info().

Code has been taken from Colorbox module.

File

./popup_onload.module, line 261
Contains main popup_onload hooks and functions.

Code

function popup_onload_libraries_info() {
  $libraries = [];

  // If the colorbox module is present don't overwrite its library definition.
  if (!function_exists('colorbox_libraries_info')) {
    $libraries['colorbox'] = [
      'name' => 'Colorbox plugin',
      'vendor url' => 'http://www.jacklmoore.com/colorbox',
      'download url' => 'http://www.jacklmoore.com/colorbox',
      'version arguments' => [
        'file' => 'jquery.colorbox-min.js',
        'pattern' => '@Colorbox.+([0-9\\.a-z]+)@',
        'lines' => 5,
      ],
      'files' => [
        'js' => [
          'jquery.colorbox-min.js',
        ],
      ],
      'variants' => [
        'minified' => [
          'files' => [
            'js' => [
              'jquery.colorbox-min.js',
            ],
          ],
        ],
        'source' => [
          'files' => [
            'js' => [
              'jquery.colorbox.js',
            ],
          ],
        ],
      ],
    ];
  }
  return $libraries;
}