function modernizr_modernizr_info in Modernizr 8
Same name and namespace in other branches
- 7.3 modernizr.module \modernizr_modernizr_info()
Implements hook_modernizr_info().
This function implements our own hook to ensure that any custom Modernizr builds downloaded from either the settings screen or drush commands contain the essential components needed to support the module's functionality.
cssclasses
- Automatically adds cssclasses to download links since most users want this.
html5shiv w/ printshiv
- Includes some utility JS that allows IE to recognize HTML5 elements
load
- Includes yepnope.js as Modernizr.load() - allows conditional asynchronous CSS/JS loading.
File
- ./
modernizr.module, line 661 - Main module file for Modernizr
Code
function modernizr_modernizr_info() {
$items = array();
$items[] = 'cssclasses';
$items[] = 'printshiv';
$items[] = 'load';
return $items;
}