You are here

function photoswipe_libraries_info in PhotoSwipe 3.x

Same name and namespace in other branches
  1. 8.2 photoswipe.module \photoswipe_libraries_info()
  2. 8 photoswipe.module \photoswipe_libraries_info()
  3. 7.2 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;
}