You are here

function smartmenus_libraries_info in Smartmenus.js 7

Implements hook_libraries_info().

File

./smartmenus.module, line 192
Integration with the Smartmenus jQuery plugin for responsive menus.

Code

function smartmenus_libraries_info() {
  $libraries['smartmenus'] = array(
    'name' => 'Smartmenus jQuery plugin',
    'vendor url' => 'https://www.drupal.org/project/smartmenus',
    'download url' => 'https://github.com/vadikom/smartmenus/archive/master.zip',
    'version arguments' => array(
      'file' => 'jquery.smartmenus.js',
      'pattern' => '@(?i:SmartMenus jQuery Plugin -) ([0-9\\.a-z]+)@',
      'lines' => 9,
    ),
    'files' => array(
      'css' => array(
        'css/sm-core-css.css',
      ),
      'js' => array(
        'jquery.smartmenus.js' => array(
          'scope' => 'footer',
        ),
      ),
    ),
    'variants' => array(
      'minified' => array(
        'files' => array(
          'js' => array(
            'jquery.smartmenus.min.js',
          ),
        ),
      ),
      'source' => array(
        'files' => array(
          'js' => array(
            'jquery.smartmenus.js',
          ),
        ),
      ),
    ),
  );
  return $libraries;
}