From ef0fa006ed83a10326ff0affc5f83a55fe591836 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 7 Nov 2003 19:03:35 +0000 Subject: - Usability improvement: replaced many selection boxes by radio buttons. Patch by Stefan. --- modules/user/user.module | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/user') diff --git a/modules/user/user.module b/modules/user/user.module index 56a2326f4..d67f95359 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1185,9 +1185,9 @@ function _user_mail_text($message) { } function user_settings() { - $output .= form_select(t("Public registrations"), "user_register", variable_get("user_register", 1), array(t("Only site administrators can create new user accounts."), t("Visitors can create accounts and no administrator approval is required."), t("Visitors can create accounts but administrator approval is required."))); + $output .= form_radios(t("Public registrations"), "user_register", variable_get("user_register", 1), array(t("Only site administrators can create new user accounts."), t("Visitors can create accounts and no administrator approval is required."), t("Visitors can create accounts but administrator approval is required."))); - $output .= form_select(t("Remember authenticated users"), "user_remember", variable_get("user_remember", 0), array(t("Let the user decide whether he should be logged out when leaving the site."), t("Authenticated users are not logged out upon leaving the site."), t("Authenticated users are logged out upon leaving the site."))); + $output .= form_radios(t("Remember authenticated users"), "user_remember", variable_get("user_remember", 0), array(t("Let the user decide whether he should be logged out when leaving the site."), t("Authenticated users are not logged out upon leaving the site."), t("Authenticated users are logged out upon leaving the site."))); $output .= form_textarea(t("User registration guidelines"), "user_registration_help", variable_get("user_registration_help", ""), 70, 4, t("This text is displayed at the top of the user registration form. It's useful for helping or instructing your users.")); @@ -1288,7 +1288,7 @@ function user_admin_access($edit = array()) { } $options = array ("1" => t("Allow"), "0" => t("Deny")); - $rows[] = array(form_select(NUll, "status", $edit["status"], $options), form_textfield(NULL, "mask", $edit["mask"], 32, 64), form_submit(t("Add rule"))); + $rows[] = array(form_radios(NUll, "status", $edit["status"], $options), form_textfield(NULL, "mask", $edit["mask"], 32, 64), form_submit(t("Add rule"))); $output .= table($header, $rows); $output .= "

%: ". t("Matches any number of characters, even zero characters") .".
_: ". t("Matches exactly one character.") ."

"; @@ -1518,8 +1518,8 @@ function user_admin_edit($edit = array()) { $output .= implode("\n", module_invoke_all("user", "edit_form", $edit, $account)); $output .= form_item(t("Password"), " ", t("Enter a new password twice if you want to change the current password for this user or leave it blank if you are happy with the current password.")); - $output .= form_select(t("Status"), "status", $account->status, array(t("Blocked"), t("Active"))); - $output .= form_select(t("Role"), "rid", $account->rid, user_roles(1)); + $output .= form_radios(t("Status"), "status", $account->status, array(t("Blocked"), t("Active"))); + $output .= form_radios(t("Role"), "rid", $account->rid, user_roles(1)); $output .= form_submit(t("Save account")); $output .= form_submit(t("Delete account")); -- cgit v1.2.3