function modernizr_deprecation_test_library_info_alter
Implements hook_library_info_alter().
File
-
core/
modules/ system/ tests/ modules/ modernizr_deprecation_test/ modernizr_deprecation_test.module, line 11
Code
function modernizr_deprecation_test_library_info_alter(&$libraries, $extension) {
if ($extension === 'core') {
unset($libraries['modernizr']['header']);
$libraries['modernizr']['js']['assets/vendor/modernizr/modernizr.min.js']['weight'] = -15;
$libraries['modernizr']['js']['misc/modernizr-additional-tests.js']['weight'] = -14;
}
if ($extension === 'js_testing_log_test') {
$libraries['deprecation_log']['js']['js/js_testing_log.js']['weight'] = -16;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.