summaryrefslogtreecommitdiff
path: root/modules/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-06-24 22:12:36 +0000
committerDries Buytaert <dries@buytaert.net>2004-06-24 22:12:36 +0000
commitd4e7affba8faf00bccc48ec6028b9f20e62a35fc (patch)
tree4023280e182386b931ede547fdfa283eebc13562 /modules/user.module
parentea676b3a1c8c109af7f5f2f17449498351e91069 (diff)
downloadbrdo-d4e7affba8faf00bccc48ec6028b9f20e62a35fc.tar.gz
brdo-d4e7affba8faf00bccc48ec6028b9f20e62a35fc.tar.bz2
- Bugfix: made it possible for administrators to edit the values of custom
profile fields of users.
Diffstat (limited to 'modules/user.module')
-rw-r--r--modules/user.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/user.module b/modules/user.module
index 923805028..e8b18a029 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -1095,7 +1095,7 @@ function user_edit($edit = array()) {
$output .= form_group(t('Picture'), $group);
}
- $output .= _user_profile($edit, $user, 'form');
+ $output .= _user_profile($edit, $user);
$output .= form_submit(t('Save user information'));
$output = form($output, 'post', 0, array('enctype' => 'multipart/form-data'));
@@ -1310,7 +1310,7 @@ function user_admin_create($edit = array()) {
$output = form_textfield(t('Username'), 'name', $edit['name'], 30, 55, t('Provide the username of the new account.'));
$output .= form_textfield(t('E-mail address'), 'mail', $edit['mail'], 30, 55, t('Provide the e-mail address associated with the new account.'));
- $output .= _user_profile($edit, $edit, 'form');
+ $output .= _user_profile($edit, $edit);
$output .= form_textfield(t('Password'), 'pass', $edit['pass'], 30, 55, t('Provide a password for the new account.'));
$output .= form_submit(t('Create account'));
@@ -1594,7 +1594,7 @@ function user_admin_edit() {
$output .= form_group(t('Picture'), $group);
}
- $output .= _user_profile($edit, $account, 'edit');
+ $output .= _user_profile($edit, $account, 'form');
$output .= form_submit(t('Save account'));
$output .= form_submit(t('Delete account'));