diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-12-02 21:11:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-12-02 21:11:18 +0000 |
commit | 9cb3430e8b744927765217045eb2d20fe260f58d (patch) | |
tree | 59ef9bb958ffaf403c1e2b283a83fdd5aee2fd50 /modules | |
parent | 53e128807a0e2d6e9e3377052cd0897d9d9f598e (diff) | |
download | brdo-9cb3430e8b744927765217045eb2d20fe260f58d.tar.gz brdo-9cb3430e8b744927765217045eb2d20fe260f58d.tar.bz2 |
- Added "add new comment"-link (derived from a patch by Axel)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/book.module | 4 | ||||
-rw-r--r-- | 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[] = "<a href=\"module.php?mod=book\">". t("collaborative book") ."</a>"; } @@ -89,7 +89,7 @@ function book_link($type, $node = 0) { $links[] = "<a href=\"admin.php?mod=book\">". t("collaborative book") ."</a>"; } - if ($type == "node" && $node->type == "book") { + if ($main == 0 && $type == "node" && $node->type == "book") { $links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\">". t("update this book page") ."</a>"; } 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[] = "<a href=\"module.php?mod=book\">". t("collaborative book") ."</a>"; } @@ -89,7 +89,7 @@ function book_link($type, $node = 0) { $links[] = "<a href=\"admin.php?mod=book\">". t("collaborative book") ."</a>"; } - if ($type == "node" && $node->type == "book") { + if ($main == 0 && $type == "node" && $node->type == "book") { $links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\">". t("update this book page") ."</a>"; } |