You are here

function responsive_menu_libraries_info in Responsive and off-canvas menu 7.2

Same name and namespace in other branches
  1. 7.3 responsive_menu.module \responsive_menu_libraries_info()
  2. 7 responsive_menu.module \responsive_menu_libraries_info()

Implements hook_libraries_info().

File

./responsive_menu.module, line 201

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(
        'src/js/hoverIntent.js',
        'src/js/superfish.js',
      ),
    ),
    'variants' => array(
      'minified' => array(
        'files' => array(
          'js' => array(
            'dist/js/hoverIntent.js',
            'dist/js/superfish.min.js',
          ),
        ),
      ),
      'minified_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/jQuery.mmenu/zipball',
    'version arguments' => array(
      'file' => 'package.json',
      'pattern' => '/"version".+?"(\\d\\..+?)"/',
      'lines' => 5,
    ),
    'files' => array(
      'js' => array(
        'dist/jquery.mmenu.all.js',
      ),
      'css' => array(
        'dist/jquery.mmenu.all.css',
      ),
    ),
  );
  $libraries['hammerjs'] = array(
    'name' => 'hammerjs',
    'vendor url' => 'http://hammerjs.github.io',
    'download url' => 'https://api.github.com/repos/hammerjs/hammer.js/zipball',
    'version arguments' => array(
      'file' => 'hammer.min.js',
      'pattern' => '/v(\\d+?\\..+?)\\s/',
      'lines' => 1,
    ),
    'files' => array(
      'js' => array(
        'hammer.min.js',
      ),
    ),
  );
  return $libraries;
}