function photoswipe_libraries_info in PhotoSwipe 8
Same name and namespace in other branches
- 8.2 photoswipe.module \photoswipe_libraries_info()
- 7.2 photoswipe.module \photoswipe_libraries_info()
- 3.x photoswipe.module \photoswipe_libraries_info()
Implements hook_libraries_info().
File
- ./
photoswipe.module, line 18 - 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;
}