Created
December 5, 2011 09:57
-
-
Save anthonyringoet/1433078 to your computer and use it in GitHub Desktop.
add modernizr in template.php and avoid it gets preprocessed
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
<?php | |
function hook_preprocess_html(&$vars) { | |
// add modernizr and avoid that it gets preprocessed | |
$options = array('preprocess' => FALSE, | |
'weight' => -25.000, | |
'group' => -100); | |
drupal_add_js('/sites/all/libraries/modernizr/modernizr.min.js', $options); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment