summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-10-25 13:25:36 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-10-25 13:25:36 +0000
commit46ea3659ddb208bd5b655272199e5a655eb21a98 (patch)
treec38d47edaddfbb0f10229a234df0167e3c66e6f4 /modules
parent690e60f030761e7016b2352ed18cc70899989156 (diff)
downloadbrdo-46ea3659ddb208bd5b655272199e5a655eb21a98.tar.gz
brdo-46ea3659ddb208bd5b655272199e5a655eb21a98.tar.bz2
- added a logout link to the user menu.
- fixed some untranslated strings in the user.module.
Diffstat (limited to 'modules')
-rw-r--r--modules/user.module7
-rw-r--r--modules/user/user.module7
2 files changed, 8 insertions, 6 deletions
diff --git a/modules/user.module b/modules/user.module
index 418ed4713..1ea99a00d 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -249,6 +249,7 @@ function user_link($type) {
if ($type == "menu") {
$links[] = "<a href=\"module.php?mod=user&op=view\">". t("account settings") ."</a>";
+ $links[] = "<br /><a href=\"module.php?mod=user&op=logout\">". t("logout") ."</a>";
}
if ($type == "admin") {
@@ -735,9 +736,9 @@ function user_edit($edit = array()) {
}
function user_menu() {
- $links[] = "<a href=\"module.php?mod=user&op=view\">view user information</a>";
- $links[] = "<a href=\"module.php?mod=user&op=edit\">edit user information</a>";
- $links[] = "<a href=\"module.php?mod=user&op=logout\">logout</a>";
+ $links[] = "<a href=\"module.php?mod=user&op=view\">". t("view user information") ."</a>";
+ $links[] = "<a href=\"module.php?mod=user&op=edit\">". t("edit user information") ."</a>";
+ $links[] = "<a href=\"module.php?mod=user&op=logout\">". t("logout") ."</a>";
return "<div align=\"center\">". implode(" &middot; ", $links) ."</div>";
}
diff --git a/modules/user/user.module b/modules/user/user.module
index 418ed4713..1ea99a00d 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -249,6 +249,7 @@ function user_link($type) {
if ($type == "menu") {
$links[] = "<a href=\"module.php?mod=user&op=view\">". t("account settings") ."</a>";
+ $links[] = "<br /><a href=\"module.php?mod=user&op=logout\">". t("logout") ."</a>";
}
if ($type == "admin") {
@@ -735,9 +736,9 @@ function user_edit($edit = array()) {
}
function user_menu() {
- $links[] = "<a href=\"module.php?mod=user&op=view\">view user information</a>";
- $links[] = "<a href=\"module.php?mod=user&op=edit\">edit user information</a>";
- $links[] = "<a href=\"module.php?mod=user&op=logout\">logout</a>";
+ $links[] = "<a href=\"module.php?mod=user&op=view\">". t("view user information") ."</a>";
+ $links[] = "<a href=\"module.php?mod=user&op=edit\">". t("edit user information") ."</a>";
+ $links[] = "<a href=\"module.php?mod=user&op=logout\">". t("logout") ."</a>";
return "<div align=\"center\">". implode(" &middot; ", $links) ."</div>";
}