From 9cb3430e8b744927765217045eb2d20fe260f58d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 2 Dec 2001 21:11:18 +0000 Subject: - Added "add new comment"-link (derived from a patch by Axel) --- modules/book.module | 4 ++-- modules/book/book.module | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/book.module b/modules/book.module index c17f96064..3e841c1b2 100644 --- a/modules/book.module +++ b/modules/book.module @@ -80,7 +80,7 @@ function book_save($op, $node) { } -function book_link($type, $node = 0) { +function book_link($type, $node = 0, $main = 0) { if ($type == "page" && user_access("access content")) { $links[] = "". t("collaborative book") .""; } @@ -89,7 +89,7 @@ function book_link($type, $node = 0) { $links[] = "". t("collaborative book") .""; } - if ($type == "node" && $node->type == "book") { + if ($main == 0 && $type == "node" && $node->type == "book") { $links[] = "nid\">". t("update this book page") .""; } diff --git a/modules/book/book.module b/modules/book/book.module index c17f96064..3e841c1b2 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -80,7 +80,7 @@ function book_save($op, $node) { } -function book_link($type, $node = 0) { +function book_link($type, $node = 0, $main = 0) { if ($type == "page" && user_access("access content")) { $links[] = "". t("collaborative book") .""; } @@ -89,7 +89,7 @@ function book_link($type, $node = 0) { $links[] = "". t("collaborative book") .""; } - if ($type == "node" && $node->type == "book") { + if ($main == 0 && $type == "node" && $node->type == "book") { $links[] = "nid\">". t("update this book page") .""; } -- cgit v1.2.3