function responsive_menu_libraries_info in Responsive and off-canvas menu 7
Same name and namespace in other branches
- 7.3 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 186
Code
function responsive_menu_libraries_info() {
$libraries['superfish'] = array(
'name' => 'Superfish',
'vendor url' => 'https://github.com/joeldbirch/superfish/tree/master/src',
'download url' => 'https://github.com/joeldbirch/superfish/tree/master/src',
'version arguments' => array(
'file' => 'superfish.jquery.json',
// Version string is stored as json in the format: "version": "1.7.5"
'pattern' => '/"version"\\: "(\\d\\..+?)"/',
'lines' => 15,
),
'files' => array(
'js' => array(
'src/js/hoverIntent.js',
'src/js/superfish.js',
),
),
'variants' => array(
'minified' => array(
'files' => array(
'js' => array(
'dist/js/hoverIntent.min.js',
'dist/js/superfish.min.js',
),
),
),
),
);
$libraries['mmenu'] = array(
'name' => 'mmenu',
'vendor url' => 'http://mmenu.frebsite.nl',
'download url' => 'http://mmenu.frebsite.nl/download.php',
'version arguments' => array(
'file' => 'package.json',
'pattern' => '/"version".+?\\:.+?"(\\d\\..+?)"/',
'lines' => 5,
),
'files' => array(
'js' => array(
'dist/js/jquery.mmenu.min.all.js',
),
'css' => array(
'dist/css/jquery.mmenu.all.css',
),
),
);
$libraries['hammerjs'] = array(
'name' => 'hammerjs',
'vendor url' => 'http://hammerjs.github.io',
'download url' => 'http://hammerjs.github.io/dist/hammer.min.js',
'version arguments' => array(
'file' => 'hammer.min.js',
'pattern' => '/v(\\d+?\\..+?)\\s/',
'lines' => 1,
),
'files' => array(
'js' => array(
'hammer.min.js',
),
),
);
return $libraries;
}