summaryrefslogtreecommitdiff
path: root/modules/book/book.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/book/book.module')
-rw-r--r--modules/book/book.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index a6c59fdf5..51b906f4e 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -118,6 +118,10 @@ function book_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', 'book') .'/book.css');
+
// To avoid SQL overhead, check whether we are on a node page and whether the
// user is allowed to outline posts in books.
if (arg(0) == 'node' && is_numeric(arg(1)) && user_access('outline posts in books')) {