diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-11-20 21:51:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-11-20 21:51:23 +0000 |
commit | 4bdac4333ba34adc61e19180b5f1bcde692615e2 (patch) | |
tree | ed30f0417f99d0257bef231f6652d1399d0e520a /modules/blog/blog.module | |
parent | 9000f825cc63e6b52ad4f19f633d67aa16fef799 (diff) | |
download | brdo-4bdac4333ba34adc61e19180b5f1bcde692615e2.tar.gz brdo-4bdac4333ba34adc61e19180b5f1bcde692615e2.tar.bz2 |
- Patch by JonBob:
Phase 2 of the menu system integration project. This unifies the interface
used by admin and non-admin pages, and deprecates the _page hook in favor of
explicit callbacks from menu(). Breadcrumbs, titles, and help text go away
as a result of this patch; they will return in the phase 3 patch, printed
by the theme.
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 9acaf7bb0..be73a62de 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -252,10 +252,13 @@ function blog_link($type, $node = 0, $main) { if ($type == "system") { if (user_access("maintain personal blog")) { - menu("node/add/blog", t("blog entry"), "page", 0); + menu("node/add/blog", t("blog entry"), "node_page", 0); } if (user_access("maintain personal blog")) { - menu("blog/" . $user->uid, t("my blog"), "page", 1); + menu("blog/" . $user->uid, t("my blog"), "blog_page", 1); + } + if (user_access("access content")) { + menu("blog", t("blog"), "blog_page", 0, 1); } } |