diff options
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/user.module | 1 | ||||
-rw-r--r-- | modules/user/user.pages.inc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index a68a3b8ef..bd12d4f38 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -3166,6 +3166,7 @@ function user_register_submit($form, &$form_state) { return; } $form_state['user'] = $account; + $form_state['values']['uid'] = $account->uid; watchdog('user', 'New user: %name (%email).', array('%name' => $form_state['values']['name'], '%email' => $form_state['values']['mail']), WATCHDOG_NOTICE, l(t('edit'), 'user/' . $account->uid . '/edit')); diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc index 0f42729a2..949a9fcef 100644 --- a/modules/user/user.pages.inc +++ b/modules/user/user.pages.inc @@ -277,6 +277,7 @@ function user_profile_form_submit($form, &$form_state) { $edit = (array)$edit; user_save($account, $edit, $category); + $form_state['values']['uid'] = $account->uid; // Clear the page cache because pages can contain usernames and/or profile information: cache_clear_all(); |