From 22c889e7c05b1c2dd98ad5e6b3547234a3f6596f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Oct 2003 18:16:41 +0000 Subject: - Help system improvements: eliminated the _system hook. Patch by Michael. - Bloggerapi module fixes. Patch by Kjartan. - Coding style fixes. Patch by Michael. --- modules/book.module | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'modules/book.module') diff --git a/modules/book.module b/modules/book.module index 652c5a968..d27591c80 100644 --- a/modules/book.module +++ b/modules/book.module @@ -1,14 +1,6 @@ type == "book") { - book_view($node,0); + book_view($node, 0); } else { @@ -448,7 +440,7 @@ function book_show($node, $cid) { ** View the node */ theme("breadcrumb", $node->breadcrumb); - theme("node",$node, 0); + theme("node", $node, 0); } else { @@ -859,9 +851,9 @@ function book_help($section = "admin/node/book/help") { $output .= "

In order to set up the FAQ, you have to create a new book which will hold all your content. To do so, click on the %create link. Give it a thoughtful title, and body. A title like \"Estonia Travel - FAQ\" is nice. You may always edit these fields later. You will probably want to designate <root> as the parent of this page. Leave the log message and type fields blank for now. After you have submitted this book page, you are ready to begin filling up your book with questions that are frequently asked.

"; $output .= "

Whenever you come across a post which you want to include in your FAQ, click on the administer link. Then click on the edit book outline button at the bottom of the page. Then place the relevant post wherever is most appropriate in your book by selecting a parent. Books are quite flexible. They can have sections like Flying to Estonia, Eating in Estonia and so on. As you get more experienced with the book module, you can reorganize posts in your book so that it stays organized.

"; $output .= "

Notes:

"; - $output = t($output, array("%permissions" => l(t("permissions"), "admin/user/permission"), "%create" => l(t("create book page"), "node/add/book"), "%collaborative-book" => l(t("collaborative book"), "admin/node/book"), "%orphans-book" => l(t("review their books for orphans"), "admin/node/book/orphan"), "%export-book" => l(t("export their books"), "book/print"), "%create" => l(t("create book page"), "node/add/book") )); + $output = t($output, array("%permissions" => l(t("permissions"), "admin/user/permission"), "%create" => l(t("create book page"), "node/add/book"), "%collaborative-book" => l(t("collaborative book"), "admin/node/book"), "%orphans-book" => l(t("review their books for orphans"), "admin/node/book/orphan"), "%export-book" => l(t("export their books"), "book/print"), "%create" => l(t("create book page"), "node/add/book"))); break; - case 'admin/system/modules': + case 'admin/system/modules#description': $output = t("Allows users to collaboratively author a book."); break; case 'admin/node/book': -- cgit v1.2.3