function responsive_menu_libraries_info in Responsive and off-canvas menu 7.3
Same name and namespace in other branches
- 7 responsive_menu.module \responsive_menu_libraries_info()
- 7.2 responsive_menu.module \responsive_menu_libraries_info()
Implements hook_libraries_info().
File
- ./
responsive_menu.module, line 182
Code
function responsive_menu_libraries_info() {
$libraries['superfish'] = array(
'name' => 'Superfish',
'vendor url' => 'https://api.github.com/repos/joeldbirch/superfish/zipball',
'download url' => 'https://api.github.com/repos/joeldbirch/superfish/zipball',
'version arguments' => array(
// Use bower.json as that is the only consistent file when downloading
// using manual method, bower and npm.
'file' => 'bower.json',
// Version string is stored as json in the format: "version": "1.7.5".
'pattern' => '/"version"\\: "(\\d\\..+?)"/',
'lines' => 15,
),
'files' => array(
'js' => array(
'dist/js/hoverIntent.js',
'dist/js/superfish.min.js',
),
),
'variants' => array(
'no_hoverintent' => array(
'files' => array(
'js' => array(
'dist/js/superfish.min.js',
),
),
),
),
);
$libraries['mmenu'] = array(
'name' => 'mmenu',
'vendor url' => 'http://mmenu.frebsite.nl',
'download url' => 'https://api.github.com/repos/FrDH/mmenu-js/zipball',
'version arguments' => array(
'file' => 'package.json',
'pattern' => '/"version".+?"(\\d\\..+?)"/',
'lines' => 5,
),
'files' => array(
'js' => array(
'dist/mmenu.js',
),
'css' => array(
'dist/mmenu.css',
),
),
'variants' => array(
'with_polyfills' => array(
'files' => array(
'js' => array(
'dist/mmenu.js',
'dist/mmenu.polyfills.js',
),
'css' => array(
'dist/mmenu.css',
),
),
),
),
);
return $libraries;
}