diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-08-30 21:52:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-08-30 21:52:39 +0000 |
commit | 756a5da5446f33df4b8cc5b5e6c40b2b132c0982 (patch) | |
tree | 6b6d0261aba7f923b292a956d720f2eafb8d13d8 | |
parent | 796399ffd4f3343a40ab78ce2d9a0ed529715476 (diff) | |
download | brdo-756a5da5446f33df4b8cc5b5e6c40b2b132c0982.tar.gz brdo-756a5da5446f33df4b8cc5b5e6c40b2b132c0982.tar.bz2 |
- Added an "edit account" link.
-rw-r--r-- | modules/user.module | 4 | ||||
-rw-r--r-- | modules/user/user.module | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/modules/user.module b/modules/user.module index 9385d764e..8c57b40da 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1131,6 +1131,10 @@ function user_view($uid = 0) { } } + if (user_access("administer users")) { + $output .= form_item(t("Administration"), l(t("edit account"), "admin/user/edit/$account->uid")); + } + theme("header"); theme("box", $account->name, $output); theme("footer"); diff --git a/modules/user/user.module b/modules/user/user.module index 9385d764e..8c57b40da 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1131,6 +1131,10 @@ function user_view($uid = 0) { } } + if (user_access("administer users")) { + $output .= form_item(t("Administration"), l(t("edit account"), "admin/user/edit/$account->uid")); + } + theme("header"); theme("box", $account->name, $output); theme("footer"); |