You are here

function photoswipe_libraries_info in PhotoSwipe 7.2

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

Implements hook_libraries_info().

File

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

Code

function photoswipe_libraries_info() {
  $libraries['photoswipe'] = array(
    'name' => 'Photoswipe plugin',
    'vendor url' => 'http://photoswipe.com',
    'download url' => 'https://github.com/dimsemenov/PhotoSwipe/archive/v4.0.5.zip',
    'path' => 'dist',
    'version arguments' => array(
      'file' => 'dist/photoswipe.min.js',
      'pattern' => '@(?i:PhotoSwipe)\\s-\\sv?([0-9\\.a-z]+)@',
      'lines' => 5,
    ),
    'files' => array(
      'js' => array(
        'photoswipe.min.js',
        'photoswipe-ui-default.min.js',
      ),
      'css' => array(
        'photoswipe.css',
        'default-skin/default-skin.css',
      ),
    ),
    'variants' => array(
      'minified' => array(
        'files' => array(
          'js' => array(
            'photoswipe.min.js',
            'photoswipe-ui-default.min.js',
          ),
          'css' => array(
            'photoswipe.css',
          ),
        ),
      ),
      'source' => array(
        'files' => array(
          'js' => array(
            'photoswipe.js',
            'photoswipe-ui-default.js',
          ),
          'css' => array(
            'photoswipe.css',
            'default-skin/default-skin.css',
          ),
        ),
      ),
    ),
  );
  return $libraries;
}