You are here

function outdatedbrowser_libraries_info in Outdated Browser 7

Implements hook_libraries_info().

File

./outdatedbrowser.module, line 59
Outdated Browser module file.

Code

function outdatedbrowser_libraries_info() {
  $libraries = array();

  // Registers Outdated Browser library.
  $libraries['outdatedbrowser'] = array(
    'name' => 'Outdated Browser library',
    'vendor url' => 'http://outdatedbrowser.com',
    'download url' => 'https://github.com/burocratik/outdated-browser/archive/develop.zip',
    'path' => 'outdatedbrowser',
    'version arguments' => array(
      'file' => 'outdatedbrowser/outdatedbrowser.js',
      'pattern' => '/(?i:Version:)\\s+([0-9\\.]+)/',
      'lines' => 5,
      'cols' => 50,
    ),
    'files' => array(
      'js' => array(
        'outdatedbrowser.min.js',
      ),
      'css' => array(
        'outdatedbrowser.min.css',
      ),
    ),
    'variants' => array(
      'minified' => array(
        'files' => array(
          'js' => array(
            'outdatedbrowser.min.js',
          ),
          'css' => array(
            'outdatedbrowser.min.css',
          ),
        ),
      ),
      'source' => array(
        'files' => array(
          'js' => array(
            'outdatedbrowser.js',
          ),
          'css' => array(
            'outdatedbrowser.css',
          ),
        ),
      ),
    ),
  );
  return $libraries;
}