Created
February 5, 2015 12:01
-
-
Save msankhala/934c066a4d185db04a10 to your computer and use it in GitHub Desktop.
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 | |
// In custom module | |
function mymodule_preprocess_html(&$variables) { | |
// Add conditional stylesheets for admin pages on admin theme. | |
if (arg(0)=="admin") { | |
// reference your current admin theme | |
$theme_path = drupal_get_path('theme', 'commerce_kickstart_admin'); | |
// reference your own stylesheet | |
drupal_add_css(drupal_get_path('module', 'mymodule') . '/css/mymodule.css', array('weight' => CSS_THEME)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment