You are here

function modernizr_libraries_info in Modernizr 8

Same name and namespace in other branches
  1. 7.3 modernizr.module \modernizr_libraries_info()

Implements hook_libraries_info().

Return value

array

File

./modernizr.module, line 114
Main module file for Modernizr

Code

function modernizr_libraries_info() {
  global $_modernizr_js_settings;
  $libraries = array();
  $file_name = modernizr_get_filename();

  // Define Modernizr within Libraries API
  $libraries['modernizr'] = array(
    'name' => t('Modernizr'),
    'vendor url' => 'http://modernizr.com',
    'download url' => 'http://modernizr.com/download/',
    'version arguments' => array(
      'file' => $file_name,
      'pattern' => MODERNIZR_VERSION_REGEX,
    ),
    'files' => array(
      'js' => array(
        $file_name => $_modernizr_js_settings,
      ),
    ),
  );
  return $libraries;
}