summaryrefslogtreecommitdiff
path: root/modules/book
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-09-05 02:21:38 +0000
committerDries Buytaert <dries@buytaert.net>2010-09-05 02:21:38 +0000
commitfb9c1df0b942df39115a9130dfa76e2b3fd33217 (patch)
tree7dce29a2f9eebf607d9106fa2f1aed6fbe0d8b61 /modules/book
parent8e51c3b2a5796737583b59a4970812ff66755b38 (diff)
downloadbrdo-fb9c1df0b942df39115a9130dfa76e2b3fd33217.tar.gz
brdo-fb9c1df0b942df39115a9130dfa76e2b3fd33217.tar.bz2
- Patch #328357 by bleen18, sun, skilip, alanburke, jenlampton, manarth, fgm, tstoeckler: allow module .info files to add CSS/JS.
Diffstat (limited to 'modules/book')
-rw-r--r--modules/book/book.info1
-rw-r--r--modules/book/book.module7
2 files changed, 1 insertions, 7 deletions
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
@@ -215,13 +215,6 @@ function book_admin_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().
*/
function book_entity_info_alter(&$info) {