function hook_modernizr_info in Modernizr 8
Same name and namespace in other branches
- 7.3 modernizr.api.php \hook_modernizr_info()
Registers a Modernizr dependency.
This hook will not alter the production output of the module whatsoever. Its purpose is to tell the Drupal module which options are necessary if another Modernizr custom build is downloaded using the admin UI.
Currently, you must visit the admin page for Modernizr and click the button in the admin UI to fetch the custom build. Future versions of the module will integrate with the node.js builder, allowing drush to generate a properly equipped Modernizr custom build.
The module implements this function itself so feel free to look at modernizr_modernizr_info() for another example.
Return value
An array of options that specify Modernizr custom build requirements.
1 function implements hook_modernizr_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- modernizr_modernizr_info in ./
modernizr.module - Implements hook_modernizr_info().
File
- ./
modernizr.api.php, line 31 - Hooks provided by the Modernizr module
Code
function hook_modernizr_info() {
$tests = array();
//
// The index of each entry MUST be the exact string needed in whatever
// version of modernizr.js you're using. These strings are not arbitrary.
// This Drupal module will always support the latest stable version of
// Modernizr and nothing else.
//
// Specify feature tests.
$tests[] = 'borderradius';
return $tests;
}