diff --git a/modules/user.module b/modules/user.module
index 417aadd065e..5f7a4377f54 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -680,11 +680,11 @@ function user_login($edit = array(), $msg = "") {
$output .= form_password(t("Password"), "pass", $pass, 30, 64, t("Enter the password that accompanies your username."));
$output .= form_checkbox(t("Remember me"), "remember_me", 1, 0, 0);
$output .= form_submit(t("Log in"));
- $output .= "
» ". l(t("Request new password"), "user/password"). "
";
+ $items[] = l(t("Request new password"), "user/password");
if (variable_get("user_register", 1)) {
- $output .= "» ". l(t("Create new account"), "user/register");
+ $items[] = l(t("Create new account"), "user/register");
}
- $output .= "
";
+ $output .= theme("theme_item_list", $items);
return form($output, "post", url("user"));
}
@@ -772,11 +772,11 @@ function user_pass($edit = array()) {
$output .= form_textfield(t("Username"), "name", $edit["name"], 30, 64);
$output .= form_textfield(t("E-mail address"), "mail", $edit["mail"], 30, 64);
$output .= form_submit(t("E-mail new password"));
- $output .= "» ". l(t("Log in"), "user/login") ."
";
+ $items[] = l(t("Log in"), "user/login");
if (variable_get("user_register", 1)) {
- $output .= "» ". l(t("Create new account"), "user/register");
+ $items[] = l(t("Create new account"), "user/register");
}
- $output .= "
";
+ $output .= theme("theme_item_list", $items);
return form($output, "post", url("user"));
}
@@ -904,8 +904,9 @@ function user_register($edit = array()) {
}
}
$output .= form_submit(t("Create new account"));
- $output .= "» ". l(t("E-mail new password"), "user/password"). "
";
- $output .= "» ". l(t("Log in"), "user/login") ."
";
+ $items[] = l(t("E-mail new password"), "user/password");
+ $items[] = l(t("Log in"), "user/login");
+ $output .= theme("theme_item_list", $items);
return form($output);
}
diff --git a/modules/user/user.module b/modules/user/user.module
index 417aadd065e..5f7a4377f54 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -680,11 +680,11 @@ function user_login($edit = array(), $msg = "") {
$output .= form_password(t("Password"), "pass", $pass, 30, 64, t("Enter the password that accompanies your username."));
$output .= form_checkbox(t("Remember me"), "remember_me", 1, 0, 0);
$output .= form_submit(t("Log in"));
- $output .= "» ". l(t("Request new password"), "user/password"). "
";
+ $items[] = l(t("Request new password"), "user/password");
if (variable_get("user_register", 1)) {
- $output .= "» ". l(t("Create new account"), "user/register");
+ $items[] = l(t("Create new account"), "user/register");
}
- $output .= "
";
+ $output .= theme("theme_item_list", $items);
return form($output, "post", url("user"));
}
@@ -772,11 +772,11 @@ function user_pass($edit = array()) {
$output .= form_textfield(t("Username"), "name", $edit["name"], 30, 64);
$output .= form_textfield(t("E-mail address"), "mail", $edit["mail"], 30, 64);
$output .= form_submit(t("E-mail new password"));
- $output .= "» ". l(t("Log in"), "user/login") ."
";
+ $items[] = l(t("Log in"), "user/login");
if (variable_get("user_register", 1)) {
- $output .= "» ". l(t("Create new account"), "user/register");
+ $items[] = l(t("Create new account"), "user/register");
}
- $output .= "
";
+ $output .= theme("theme_item_list", $items);
return form($output, "post", url("user"));
}
@@ -904,8 +904,9 @@ function user_register($edit = array()) {
}
}
$output .= form_submit(t("Create new account"));
- $output .= "» ". l(t("E-mail new password"), "user/password"). "
";
- $output .= "» ". l(t("Log in"), "user/login") ."
";
+ $items[] = l(t("E-mail new password"), "user/password");
+ $items[] = l(t("Log in"), "user/login");
+ $output .= theme("theme_item_list", $items);
return form($output);
}