diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-08-17 16:20:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-08-17 16:20:08 +0000 |
commit | a25b60541dad30baa72736a3b00c1a0267b6e1e8 (patch) | |
tree | 0821cc8020b10f15c4f1428433888976fdbdc8b9 /modules/book | |
parent | 30ecab3775b7f0fc13fd19d6d245a0f774168d9c (diff) | |
download | brdo-a25b60541dad30baa72736a3b00c1a0267b6e1e8.tar.gz brdo-a25b60541dad30baa72736a3b00c1a0267b6e1e8.tar.bz2 |
- Patch #721754 by Shellingfox, lotyrin, Damien Tournoud, chx, hefox, Gábor Hojtsy, puregin: a node cannot be displayed in different view mode on its own page.
Diffstat (limited to 'modules/book')
-rw-r--r-- | modules/book/book.module | 2 |
1 files changed, 1 insertions, 1 deletions
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( |