I would like to add several fields to the user profile and store the infomation in a different table (other than the user table). I have looked at the information about the module_user hook but don't understand how it works. I think this is what I would like to use but could someone give me a better example of how to use the hook than what can be found in the Drupal help pages?

Comments

ax’s picture

why do you want to store the infomation in a different table (other than the user table)? if you didn't want to, it would be easy to add several fields to the user profile. see here for an example.

for more examples of module_user hook's usage, just check the various drupal / contrib modules (search for "_user(").