diff options
-rw-r--r-- | modules/user.module | 6 | ||||
-rw-r--r-- | modules/user/user.module | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/user.module b/modules/user.module index 75eca8a87..31e724225 100644 --- a/modules/user.module +++ b/modules/user.module @@ -951,7 +951,7 @@ function user_edit($edit = array()) { $output .= form_textfield(t("E-mail address"), "mail", $edit['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.")); $output .= 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 your new password twice if you want to change your current password or leave it blank if you are happy with your current password.")); $output = form_group(t('Account information'), $output); - $output .= _user_profile($user); + $output .= _user_profile($edit, $user); $output .= form_submit(t("Save user information")); $output = form($output, "post", 0, array("enctype" => "multipart/form-data")); @@ -964,7 +964,7 @@ function user_edit($edit = array()) { return $output; } -function _user_profile($account) { +function _user_profile($edit, $account) { foreach (module_list() as $module) { if ($data = module_invoke($module, 'user', 'edit_form', $edit, $account)) { @@ -1438,7 +1438,7 @@ function user_admin_edit($edit = array()) { $output .= form_radios(t("Role"), "rid", $account->rid, user_roles(1)); $output = form_group(t('Account information'), $output); - $output .= _user_profile($account); + $output .= _user_profile($edit, $account); $output .= form_submit(t("Save account")); $output .= form_submit(t("Delete account")); diff --git a/modules/user/user.module b/modules/user/user.module index 75eca8a87..31e724225 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -951,7 +951,7 @@ function user_edit($edit = array()) { $output .= form_textfield(t("E-mail address"), "mail", $edit['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.")); $output .= 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 your new password twice if you want to change your current password or leave it blank if you are happy with your current password.")); $output = form_group(t('Account information'), $output); - $output .= _user_profile($user); + $output .= _user_profile($edit, $user); $output .= form_submit(t("Save user information")); $output = form($output, "post", 0, array("enctype" => "multipart/form-data")); @@ -964,7 +964,7 @@ function user_edit($edit = array()) { return $output; } -function _user_profile($account) { +function _user_profile($edit, $account) { foreach (module_list() as $module) { if ($data = module_invoke($module, 'user', 'edit_form', $edit, $account)) { @@ -1438,7 +1438,7 @@ function user_admin_edit($edit = array()) { $output .= form_radios(t("Role"), "rid", $account->rid, user_roles(1)); $output = form_group(t('Account information'), $output); - $output .= _user_profile($account); + $output .= _user_profile($edit, $account); $output .= form_submit(t("Save account")); $output .= form_submit(t("Delete account")); |