summaryrefslogtreecommitdiff
path: root/modules/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-28 17:53:04 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-28 17:53:04 +0000
commit32e8d77cd6872b98f5fe00f35b6d124a28a977f0 (patch)
treee34ba4b39c6db6f62f1c1a237e0d4dcc682f3028 /modules/blog.module
parentb8416f613a0db27c63aa92321a5cb537beb46c54 (diff)
downloadbrdo-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/blog.module')
-rw-r--r--modules/blog.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/blog.module b/modules/blog.module
index c2f11b90a..0901eb052 100644
--- a/modules/blog.module
+++ b/modules/blog.module
@@ -261,10 +261,10 @@ function blog_link($type, $node = 0, $main) {
if ($type == "system") {
if (user_access("maintain personal blog")) {
- menu("node/add/blog", t("blog entry"), NULL, NULL, 0);
+ menu("node/add/blog", t("blog entry"), "blog_page", NULL, 0);
}
if (user_access("maintain personal blog")) {
- menu("blog/" . $user->uid,t("view my blog"), NULL, NULL, 1);
+ menu("blog/" . $user->uid,t("view my blog"), "user_page", NULL, 1);
}
}