You are here

function masonry_libraries_info in Masonry API 8

Same name and namespace in other branches
  1. 7.3 masonry.module \masonry_libraries_info()
  2. 7 masonry.module \masonry_libraries_info()
  3. 7.2 masonry.module \masonry_libraries_info()

Implements hook_libraries_info().

File

./masonry.module, line 13
Provides the hooks implementation to interface with Libraries API.

Code

function masonry_libraries_info() {
  $libraries['masonry'] = [
    'name' => 'Masonry',
    'vendor url' => 'http://masonry.desandro.com/',
    'download url' => 'http://masonry.desandro.com/',
    'version arguments' => [
      'file' => 'dist/masonry.pkgd.min.js',
      'pattern' => '/Masonry\\s+PACKAGED\\s+v?([0-9\\.]+)/',
      'lines' => 2,
      'cols' => 30,
    ],
    'files' => [
      'js' => [
        'dist/masonry.pkgd.min.js',
      ],
    ],
  ];
  $libraries['imagesloaded'] = [
    'name' => 'Images Loaded',
    'vendor url' => 'http://desandro.github.io/imagesloaded',
    'download url' => 'http://desandro.github.io/imagesloaded/imagesloaded.pkgd.min.js',
    'version arguments' => [
      'file' => 'imagesloaded.pkgd.min.js',
      // imagesLoaded 3.x
      'pattern' => '/imagesLoaded\\s+PACKAGED\\s+v?([0-9\\.]+)/',
      'lines' => 2,
      'cols' => 35,
    ],
    'files' => [
      'js' => [
        'imagesloaded.pkgd.min.js',
      ],
    ],
  ];
  return $libraries;
}