summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-05-15 15:42:47 +0000
committerDries Buytaert <dries@buytaert.net>2004-05-15 15:42:47 +0000
commitfed7e664de5ea6965a024f9e9b9c4cb45d2efddf (patch)
tree7ed5d45a05b28594efd835a5b0e49ed60c7e5eca /modules/user
parente1447f9b5a29dc7e87270bf53050845fe57367d8 (diff)
downloadbrdo-fed7e664de5ea6965a024f9e9b9c4cb45d2efddf.tar.gz
brdo-fed7e664de5ea6965a024f9e9b9c4cb45d2efddf.tar.bz2
- Patch #6682 by jhriggs: added form_checkboxes(), much like form_radios()
and updated some modules to take advantage of it.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 1d8a41f64..e6b6cd42c 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1665,7 +1665,7 @@ function user_admin_edit($edit = array()) {
$group .= form_textfield(t("E-mail address"), "mail", $account->mail, 30, 55, t("Insert a valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail."));
$group .= form_item(t("Password"), "<input type=\"password\" name=\"edit[pass1]\" size=\"12\" maxlength=\"24\" /> <input type=\"password\" name=\"edit[pass2]\" size=\"12\" maxlength=\"24\" />", 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."));
$group .= form_radios(t("Status"), "status", $account->status, array(t("Blocked"), t("Active")));
- $group .= form_select(t('Roles'), 'rid', array_keys($account->roles), user_roles(1), t("Select at least one role. The user receives the combined permissions of all of the selected roles."), 0, 1);
+ $group .= form_checkboxes(t('Roles'), 'rid', array_keys($account->roles), user_roles(1), t("Select at least one role. The user receives the combined permissions of all of the selected roles."));
$output = form_group(t('Account information'), $group);