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/user.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/user.module')
-rw-r--r-- | modules/user.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module index 4cd1ed13c..5e25f4d9d 100644 --- a/modules/user.module +++ b/modules/user.module @@ -466,8 +466,8 @@ function user_link($type) { if ($type == "system") { global $user; if ($user->uid) { - menu("user/edit", t("edit my account"), NULL, NULL, 8); - menu("user/logout", t("log out"), NULL, NULL, 10); + menu("user/edit", t("edit my account"), "user_page", NULL, 8); + menu("user/logout", t("log out"), "user_page", NULL, 10); } if (user_access("administer users")) { menu("admin/user", t("accounts"), "user_admin", user_help("admin/user"), 2); |