diff options
-rw-r--r-- | modules/forum/forum.module | 5 | ||||
-rw-r--r-- | modules/profile/profile.module | 5 | ||||
-rw-r--r-- | modules/watchdog/watchdog.module | 7 |
3 files changed, 9 insertions, 8 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module index ed6b971fa..e12a5b6ca 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -92,6 +92,11 @@ function forum_menu($may_cache) { 'type' => MENU_CALLBACK); } } + else { + // Add the CSS for this module + // We put this in !$may_cache so it's only added once per request + drupal_add_css(drupal_get_path('module', 'forum') .'/forum.css'); + } return $items; } diff --git a/modules/profile/profile.module b/modules/profile/profile.module index d3145c931..f6e29b2a7 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -80,11 +80,6 @@ function profile_menu($may_cache) { 'access' => 1, 'type' => MENU_CALLBACK); } - else { - // Add the CSS for this module - // We put this in !$may_cache so it's only added once per request - drupal_add_css(drupal_get_path('module', 'profile') .'/profile.css'); - } return $items; } diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index d7fb3acf1..0dfd6a2f3 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -51,9 +51,10 @@ function watchdog_menu($may_cache) { 'type' => MENU_CALLBACK); } else { - // Add the CSS for this module - // We put this in !$may_cache so it's only added once per request - drupal_add_css(drupal_get_path('module', 'watchdog') .'/watchdog.css'); + if (arg(0) == 'admin' && arg(1) == 'logs') { + // Add the CSS for this module + drupal_add_css(drupal_get_path('module', 'watchdog') .'/watchdog.css'); + } } return $items; |