diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-07-19 07:15:35 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-07-19 07:15:35 +0000 |
commit | c11c1c2800a91e1795ca75fb4206948015a976c3 (patch) | |
tree | 459a2c239615c61b1c5425617587a389b550e303 /modules/book/book.module | |
parent | 751a6979efe05d7d065cb7b3042ffcdb60182c8a (diff) | |
download | brdo-c11c1c2800a91e1795ca75fb4206948015a976c3.tar.gz brdo-c11c1c2800a91e1795ca75fb4206948015a976c3.tar.bz2 |
#73605 by RobRoy, make hook_link() implementations consistent with documentation.
Diffstat (limited to 'modules/book/book.module')
-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'), |