From a25b60541dad30baa72736a3b00c1a0267b6e1e8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 17 Aug 2010 16:20:08 +0000 Subject: =?UTF-8?q?-=20Patch=20#721754=20by=20Shellingfox,=20lotyrin,=20Da?= =?UTF-8?q?mien=20Tournoud,=20chx,=20hefox,=20G=C3=A1bor=20Hojtsy,=20pureg?= =?UTF-8?q?in:=20a=20node=20cannot=20be=20displayed=20in=20different=20vie?= =?UTF-8?q?w=20mode=20on=20its=20own=20page.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 8ef55f4f1..7ce80cd4c 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -91,7 +91,7 @@ function book_node_view_link($node, $view_mode) { $links = array(); if (isset($node->book['depth'])) { - if ($view_mode == 'full') { + if ($view_mode == 'full' && node_is_page($node)) { $child_type = variable_get('book_child_type', 'book'); if ((user_access('add content to books') || user_access('administer book outlines')) && node_access('create', $child_type) && $node->status == 1 && $node->book['depth'] < MENU_MAX_DEPTH) { $links['book_add_child'] = array( -- cgit v1.2.3