Last active
December 16, 2015 06:59
-
-
Save shanethehat/5395216 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_library_info_alter() | |
*/ | |
function slukphp_library_info_alter(&$libraries, $module) { | |
if ($module == 'system' && isset($libraries['modernizr'])) { | |
$file = drupal_get_path('theme', 'slukphp') . '/'; //filename relative to .theme file | |
$libraries['modernizr']['version'] = '2.6.2'; | |
$libraries['modernizr']['js'] = array( | |
$file => array( | |
'every_page' => 1, | |
'group' => -100, | |
'preprocess' => 0, | |
'scope' => 'header', | |
'weight' => -21, | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment