From fb9c1df0b942df39115a9130dfa76e2b3fd33217 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 5 Sep 2010 02:21:38 +0000 Subject: - Patch #328357 by bleen18, sun, skilip, alanburke, jenlampton, manarth, fgm, tstoeckler: allow module .info files to add CSS/JS. --- modules/book/book.info | 1 + modules/book/book.module | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'modules/book') diff --git a/modules/book/book.info b/modules/book/book.info index 8f74f59bc..c9dd5b97e 100644 --- a/modules/book/book.info +++ b/modules/book/book.info @@ -10,3 +10,4 @@ files[] = book.pages.inc files[] = book.install files[] = book.test configure = admin/content/book/settings +stylesheets[all][] = book.css diff --git a/modules/book/book.module b/modules/book/book.module index b30acce9b..ef2d83998 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -214,13 +214,6 @@ function book_admin_paths() { return $paths; } -/** - * Implements hook_init(). - */ -function book_init() { - drupal_add_css(drupal_get_path('module', 'book') . '/book.css', array('preprocess' => TRUE)); -} - /** * Implements hook_entity_info_alter(). */ -- cgit v1.2.3