diff --git a/modules/user.module b/modules/user.module index 418ed47139f97ac9dcc3967f7761bb4723fa301d..1ea99a00d8fbd705f50f002603aa8303da8a0051 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(" · ", $links) ."</div>"; } diff --git a/modules/user/user.module b/modules/user/user.module index 418ed47139f97ac9dcc3967f7761bb4723fa301d..1ea99a00d8fbd705f50f002603aa8303da8a0051 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(" · ", $links) ."</div>"; }