- Small bugfix.
parent
e28bbf6739
commit
229ac8dec4
modules
|
@ -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"));
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue