Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Anonymous (not verified) on
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
why do you want to s
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(").