function modernizr_modernizr_info in Modernizr 7.3
Same name and namespace in other branches
- 8 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.
html5shiv w/ printshiv
- Includes some utility JS that allows IE to recognize HTML5 elements.
1 call to modernizr_modernizr_info()
- ModernizrUnitTestCase::testModernizrInfo in tests/
modernizr.test - Tests that Modernizr is implementing hook_modernizr_info() correctly.
File
- ./
modernizr.module, line 792 - Main module file for Modernizr
Code
function modernizr_modernizr_info() {
$items = array();
// If a site admin has chosen to require printshiv, add it to dependencies.
if (variable_get('modernizr_cb_printshiv', FALSE)) {
$items[] = 'printshiv';
}
return $items;
}