From dca26f5ebd415fd88b7d49f6eaa7c3dd7cfa4c1e Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Thu, 30 Nov 2006 02:04:31 +0000 Subject: #26552 by Heine. Add child page to unpublished book nodes doesn't work, so remove the link. --- modules/book/book.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/book') 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" -- cgit v1.2.3