Created
August 30, 2013 22:58
-
-
Save jeremycaldwell/6395101 to your computer and use it in GitHub Desktop.
Drupal 7 - Add CSS for specific paths
This file contains hidden or 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
function THEMENAME_preprocess_page(&$vars) { | |
// Add "addcourse.css" to Add Course page only | |
if(strstr($_SERVER['REQUEST_URI'], "admin/commerce/products/$path_alias")) { | |
drupal_add_css( | |
path_to_theme() . '/css/addcourse.css', | |
array( | |
'group' => CSS_THEME, | |
) | |
); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment