diff options
Diffstat (limited to 'modules/book')
-rw-r--r-- | modules/book/book.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index a5384acd4..c83209be2 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -51,12 +51,12 @@ function book_access($op, $node) { /** * Implementation of hook_link(). */ -function book_link($type, $node = 0, $main = 0) { +function book_link($type, $node = NULL, $teaser = FALSE) { $links = array(); if ($type == 'node' && isset($node->parent)) { - if (!$main) { + if (!$teaser) { if (book_access('create', $node)) { $links['book_add_child'] = array( 'title' => t('add child page'), |