function masonry_libraries_info in Masonry API 7
Same name and namespace in other branches
- 8 masonry.module \masonry_libraries_info()
- 7.3 masonry.module \masonry_libraries_info()
- 7.2 masonry.module \masonry_libraries_info()
Implements hook_libraries_info().
File
- ./
masonry.module, line 10 - Makes the 'jQuery Masonry' plugin available to Drupal as a library.
Code
function masonry_libraries_info() {
$libraries['masonry'] = array(
'name' => 'jQuery Masonry',
'vendor url' => 'http://masonry.desandro.com/',
'download url' => 'http://masonry.desandro.com/',
'version arguments' => array(
'file' => 'jquery.masonry.min.js',
// 2.x: jQuery Masonry v2.1.05
'pattern' => '/jQuery\\s+Masonry\\s+v?([0-9\\.]+)/',
'lines' => 2,
'cols' => 30,
),
'files' => array(
'js' => array(
'jquery.masonry.min.js',
),
),
);
return $libraries;
}