Skip to content

Instantly share code, notes, and snippets.

@ogredude
Created August 6, 2012 17:13
Show Gist options
  • Save ogredude/3276751 to your computer and use it in GitHub Desktop.
Save ogredude/3276751 to your computer and use it in GitHub Desktop.
How to include your glue module's CSS last
/**
* 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