diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-28 17:53:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-28 17:53:04 +0000 |
commit | 32e8d77cd6872b98f5fe00f35b6d124a28a977f0 (patch) | |
tree | e34ba4b39c6db6f62f1c1a237e0d4dcc682f3028 /modules/book.module | |
parent | b8416f613a0db27c63aa92321a5cb537beb46c54 (diff) | |
download | brdo-32e8d77cd6872b98f5fe00f35b6d124a28a977f0.tar.gz brdo-32e8d77cd6872b98f5fe00f35b6d124a28a977f0.tar.bz2 |
- Associate a callback with the menu links! (This callback is not yet being
called but will be as soon the remaining links have been transformed to use
the menu system.)
- Made sure the menu does not render links with no callback and no children.
Like this, the 'create content' link is not being shown when the user has
no permission to add any content.
Diffstat (limited to 'modules/book.module')
-rw-r--r-- | modules/book.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book.module b/modules/book.module index 9b828668a..2763fb206 100644 --- a/modules/book.module +++ b/modules/book.module @@ -79,7 +79,7 @@ function book_link($type, $node = 0, $main = 0) { if ($type == "system") { if (user_access("maintain books")) { - menu("node/add/book", t("book page"), NULL, NULL,0); + menu("node/add/book", t("book page"), "book_page", NULL,0); menu("admin/node/book", t("books"), NULL, NULL, 4); menu("admin/node/book/orphan", t("orphan pages"), NULL, NULL, 8); menu("admin/node/book/help", t("help"), NULL, NULL, 9); |