summaryrefslogtreecommitdiff
path: root/modules/book
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-30 02:04:31 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-30 02:04:31 +0000
commitdca26f5ebd415fd88b7d49f6eaa7c3dd7cfa4c1e (patch)
tree77dd5aa0e73360b65d646e1bb1ac63cf5a171264 /modules/book
parent0d99880f9629c846e125fbcc3670215b5856e0cc (diff)
downloadbrdo-dca26f5ebd415fd88b7d49f6eaa7c3dd7cfa4c1e.tar.gz
brdo-dca26f5ebd415fd88b7d49f6eaa7c3dd7cfa4c1e.tar.bz2
#26552 by Heine. Add child page to unpublished book nodes doesn't work, so remove the link.
Diffstat (limited to 'modules/book')
-rw-r--r--modules/book/book.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index 8f3fb2915..c56725f3c 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -63,7 +63,7 @@ function book_link($type, $node = NULL, $teaser = FALSE) {
if ($type == 'node' && isset($node->parent)) {
if (!$teaser) {
- if (book_access('create', $node)) {
+ if (book_access('create', $node) && $node->status == 1) {
$links['book_add_child'] = array(
'title' => t('Add child page'),
'href' => "node/add/book/parent/$node->nid"