By pgassner on
Hey there!
I'm creating a website where ...
- ... the user goes to a registration page ...
- ... enters personal information (first/lastname, date of birth, city, etc.) and uploads a picture without having to choose a username/password ...
- ... becomes a registered user that can be treated as such.
Now my question is, where to hook a module into:
- Should I use hook_user to change the registration form or
- should I create a new module that handles the personal data and registers the user?
Number 1 seems easier to me, but I don't know, whether it would be possible to somehow replace the "create username/passwort" dialogue with my stuff, where I would generate this combination automatically from the "first-" and "last-name" fields.
If I go for option 2, should I copy the relevant functions from "user.module" or should I rather import them into my module - and how would I do that?
Thanks a lot! Regards, Peter