You are here

function photoswipe_libraries_info in PhotoSwipe 8.2

Same name and namespace in other branches
  1. 8 photoswipe.module \photoswipe_libraries_info()
  2. 7.2 photoswipe.module \photoswipe_libraries_info()
  3. 3.x photoswipe.module \photoswipe_libraries_info()

Implements hook_libraries_info().

File

./photoswipe.module, line 13
Photswipe integration with Drupal module.

Code

function photoswipe_libraries_info() {
  $libraries['photoswipe'] = [
    'name' => 'Photoswipe',
    'vendor url' => 'https://github.com/dimsemenov/PhotoSwipe',
    'download url' => 'https://github.com/dimsemenov/PhotoSwipe/archive/master.zip',
    'version arguments' => [
      'file' => 'dist/photoswipe.min.js',
      // PhotoSwipe - v4.1.1 - 2015-12-24.
      'pattern' => '/v([\\d.]+)/',
      'lines' => 1,
      'cols' => 30,
    ],
  ];
  return $libraries;
}