Skip to content
Snippets Groups Projects
Commit 9cb3430e authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Added "add new comment"-link (derived from a patch by Axel)
parent 53e12880
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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>";
}
......
......@@ -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>";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment