function mmenu_libraries_info in Mobile sliding menu 7.3
Same name and namespace in other branches
- 8 mmenu.module \mmenu_libraries_info()
- 7 mmenu.module \mmenu_libraries_info()
- 7.2 mmenu.module \mmenu_libraries_info()
Implements hook_libraries_info().
File
- ./
mmenu.module, line 517 - Primarily Drupal hooks and global API functions to manipulate mmenus.
Code
function mmenu_libraries_info() {
$libraries['mmenu.main'] = array(
'name' => 'Mmenu libraries',
'vendor url' => 'http://mmenu.frebsite.nl',
'download url' => 'http://mmenu.frebsite.nl/download.php',
'version arguments' => array(
'file' => 'main/dist/js/jquery.mmenu.min.js',
'pattern' => '/jQuery mmenu v(\\d+\\.+\\d+.+\\d+)/',
'lines' => 2,
),
'files' => array(
'js' => array(
'dist/js/jquery.mmenu.all.min.js',
),
'css' => array(
'dist/css/jquery.mmenu.all.css',
),
),
'path' => 'main',
'library path' => libraries_get_path('mmenu'),
);
$libraries['mmenu.hammer'] = array(
'name' => 'Hammer libraries',
'vendor url' => 'http://eightmedia.github.io/hammer.js',
'download url' => 'https://github.com/EightMedia/hammer.js',
'version arguments' => array(
'file' => 'hammer/hammer.js',
'pattern' => '/Hammer.JS - v(\\d+\\.+\\d+.+\\d+) -/',
'lines' => 1,
),
'files' => array(
'js' => array(
'hammer.js',
),
),
'path' => 'hammer',
'library path' => libraries_get_path('mmenu'),
);
$libraries['mmenu.jquery.hammer'] = array(
'name' => 'jQuery plugin for Hammer.js',
'vendor url' => 'https://github.com/hammerjs/jquery.hammer.js',
'download url' => 'https://github.com/hammerjs/jquery.hammer.js',
'version arguments' => array(
'file' => 'jquery.hammer/package.json',
'pattern' => '/"version": "(\\d+\\.+\\d+.+\\d+)"/',
'lines' => 3,
),
'files' => array(
'js' => array(
'jquery.hammer.js',
),
),
'path' => 'jquery.hammer',
'library path' => libraries_get_path('mmenu'),
);
$libraries['mmenu.icomoon'] = array(
'name' => 'Custom Build and Crisp Icon Fonts',
'vendor url' => 'https://icomoon.io',
'download url' => 'https://icomoon.io/app/#/select',
'version' => 'icomoon',
'files' => array(
'css' => array(
'icomoon.css',
),
),
'path' => 'icomoon',
'library path' => libraries_get_path('mmenu'),
);
return $libraries;
}