Hey there!

I'm creating a website where ...

  1. ... the user goes to a registration page ...
  2. ... enters personal information (first/lastname, date of birth, city, etc.) and uploads a picture without having to choose a username/password ...
  3. ... becomes a registered user that can be treated as such.

Now my question is, where to hook a module into:

  1. Should I use hook_user to change the registration form or
  2. 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