Created
August 6, 2012 17:13
-
-
Save ogredude/3276751 to your computer and use it in GitHub Desktop.
How to include your glue module's CSS last
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
/** | |
* Of course, custom_glue is the name of the module. Substitute your own module's name. | |
*/ | |
/** | |
* Preprocess the wrapping HTML. | |
* | |
* @param array &$variables | |
* Template variables. | |
*/ | |
function custom_glue_preprocess_html(&$variables) { | |
$override = drupal_get_path('module', 'custom_glue') . "/custom_glue.css"; | |
$options = array( | |
'group' => CSS_THEME + 1, | |
'weight' => 999, | |
); | |
drupal_add_css($override, $options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment