Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
file navbar.module
/**
* Implements hook_modernizr_info().
*/
function navbar_modernizr_info() {
$tests = array();
// Feature tests
$tests[] = 'inputtypes';
$tests[] = 'svg';
$tests[] = 'touch'; // needs to change to "touchevents"
$tests[] = 'elem_details'; // needs to change to "details"
// Extensibility
$tests[] = 'addtest';
$tests[] = 'teststyles';
$tests[] = 'prefixes';
return $tests;
}
I would be willing to write a patch but am not sure of the repercussions for modernizr 2 users.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2678136-modernizr3-test-names-changed-5.patch | 929 bytes | berliner |
#2 | 2678136-modernizr3-test-names-changed-2.patch | 393 bytes | berliner |
|
Comments
Comment #2
berliner CreditAttribution: berliner commentedRun into this too. Patch attached.
Comment #3
berliner CreditAttribution: berliner commentedComment #5
berliner CreditAttribution: berliner commentedNot sure why the test failed. Added better patch that also changes the modernizr download url to replace the outdated test names with their new values.
Comment #6
lwalley CreditAttribution: lwalley commented