Skip to content

Instantly share code, notes, and snippets.

@shanethehat
Last active December 16, 2015 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanethehat/5395216 to your computer and use it in GitHub Desktop.
Save shanethehat/5395216 to your computer and use it in GitHub Desktop.
/**
* 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