diff options
Diffstat (limited to 'modules/book')
-rw-r--r-- | modules/book/book.module | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index 5153ee9b2..ad9c23870 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -58,6 +58,9 @@ function book_access($op, $node) { } function book_link($type, $node = 0, $main = 0) { + + $links = array(); + if ($type == "page" && user_access("access content")) { $links[] = l(t("collaborative book"), "book", array("title" => t("Read and contribute to the collaborative books."))); } @@ -87,7 +90,7 @@ function book_link($type, $node = 0, $main = 0) { } } - return $links ? $links : array(); + return $links; } function book_load($node) { |