You are here

function modernizr_library_info in Modernizr 7.2

Implements hook_library_info().

Note: the 'js' array in the 'files' section is intentionally left empty. The reason is that the modernizr js should not be loaded directly by Drupal.

Return value

array

File

./modernizr.module, line 69

Code

function modernizr_library_info() {
  $libraries = array();
  $libraries['modernizr'] = array(
    'title' => t('Modernizr'),
    'vendor url' => 'http://modernizr.com',
    'download url' => 'http://modernizr.com',
    'version arguments' => array(
      'file' => 'modernizr.min.js',
      'pattern' => MODERNIZR_VERSION_REGEX,
    ),
    'files' => array(
      'js' => array(),
    ),
    'integraton files' => array(
      'modernizr' => array(
        'js' => array(
          drupal_get_path('module', 'modernizr') . '/modernizr_loader.js',
        ),
      ),
    ),
  );
  return $libraries;
}