diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-12-01 22:47:53 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-12-01 22:47:53 +0000 |
commit | 0ea4e1c5f638a22f7353caaa7515ebffc638e432 (patch) | |
tree | 7e8af8def0643985d92fc41b0cad96086377b09b /modules/help/help.module | |
parent | 7b76938b2401388f411dbf2179554ca5b449da55 (diff) | |
download | brdo-0ea4e1c5f638a22f7353caaa7515ebffc638e432.tar.gz brdo-0ea4e1c5f638a22f7353caaa7515ebffc638e432.tar.bz2 |
#100563: Conditional loading of (some) module.css files
Diffstat (limited to 'modules/help/help.module')
-rw-r--r-- | modules/help/help.module | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/help/help.module b/modules/help/help.module index a6df2c8da..61800cd56 100644 --- a/modules/help/help.module +++ b/modules/help/help.module @@ -28,11 +28,6 @@ function help_menu($may_cache) { 'access' => $admin_access); } } - 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', 'help') .'/help.css'); - } return $items; } @@ -41,6 +36,9 @@ function help_menu($may_cache) { * Menu callback; prints a page listing a glossary of Drupal terminology. */ function help_main() { + // Add CSS + drupal_add_css(drupal_get_path('module', 'help') .'/help.css'); + $output = t(' <h2>Help topics</h2> <p>Help is available on the following items:</p> |