You are here

function modernizr_libraries_info in Modernizr 7.3

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

Implements hook_libraries_info().

Return value

array

File

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

Code

function modernizr_libraries_info() {
  $modernizr_js_settings = _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;
}