Closed (works as designed)
Project:
Email Registration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 May 2008 at 01:29 UTC
Updated:
29 May 2008 at 03:40 UTC
Nice module.
I recommend that you move your hook_user('insert') code to hook_user('submit'). See http://api.drupal.org/api/function/hook_user/6. You will then not have to write into the user table table at all. Just change $user->name during submit operation and user.module will save it for you. Another benefit is that you all modules which listen on hook_user('insert') will receive the right username.
Comments
Comment #1
moshe weitzman commentedInexplicably, this operation is only called on profile changes, and not on registration.