From 4726c93156e59e0b44faf55845c3f97cf00a9168 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 24 Nov 2004 22:56:21 +0000 Subject: - Patch #13443 by Moshe: got rid of the semi-implemented 'page link' feature. All themes currently support primary and secondary links so page links are now deprecated. Check your contributed modules and update them accordingly. --- modules/book.module | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/book.module') diff --git a/modules/book.module b/modules/book.module index 18ca0f7de..a68f97248 100644 --- a/modules/book.module +++ b/modules/book.module @@ -59,10 +59,6 @@ function book_link($type, $node = 0, $main = 0) { $links = array(); - if ($type == 'page' && user_access('access content')) { - $links[] = l(t('books'), 'book', array('title' => t('Read and contribute to the collaborative books.'))); - } - if ($type == 'node' && $node->type == 'book') { if (!$main) { if (book_access('create', $node)) { @@ -82,6 +78,8 @@ function book_menu($may_cache) { $items = array(); if ($may_cache) { + $items[] = array('path' => 'book', 'title' => t('books'), + 'access' => user_access('access content'), 'type' => MENU_NORMAL_ITEM, 'weight' => 5); $items[] = array('path' => 'node/add/book', 'title' => t('book page'), 'access' => user_access('create book pages')); $items[] = array('path' => 'admin/node/book', 'title' => t('books'), -- cgit v1.2.3