summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-01-27 18:47:07 +0000
committerDries Buytaert <dries@buytaert.net>2004-01-27 18:47:07 +0000
commit1687dd07c95a6e14c5438bc3599fa5ff08d661ac (patch)
treeb833286c425eebb339e7084202bcdf006369d53a /modules/book.module
parentf99eb4dc488108abbf96a0e37fe6ac339a7e7026 (diff)
downloadbrdo-1687dd07c95a6e14c5438bc3599fa5ff08d661ac.tar.gz
brdo-1687dd07c95a6e14c5438bc3599fa5ff08d661ac.tar.bz2
- Patch 5049 by JonBob: allow a module to define multiple node types.
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module12
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/book.module b/modules/book.module
index e9b239904..b97c76f5d 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -1,13 +1,8 @@
<?php
// $Id$
-function book_node($field) {
- global $user;
-
- $info["name"] = t("book page");
- $info["description"] = t("A book is a collaborative writing effort: users can collaborate writing the pages of the book, positioning the pages in the right order, and reviewing or modifying pages previously written. So when you have some information to share or when you read a page of the book and you didn't like it, or if you think a certain page could have been written better, you can do something about it.");
-
- return $info[$field];
+function book_node_name($node) {
+ return t("book page");
}
function book_perm() {
@@ -901,6 +896,9 @@ function book_help($section = "admin/help#book") {
case 'admin/node/book/orphan':
$output = t("Pages in a book are like a tree. As pages are edited, reorganized and removed, child pages might be left with no link to the rest of the book. Such pages are refered to as 'orphan pages'. On this page, administrators can review their books for orphans and reattach those pages as desired.");
break;
+ case 'node/add#book':
+ $output = t("A book is a collaborative writing effort: users can collaborate writing the pages of the book, positioning the pages in the right order, and reviewing or modifying pages previously written. So when you have some information to share or when you read a page of the book and you didn't like it, or if you think a certain page could have been written better, you can do something about it.");
+ break;
}
return $output;