i need to insert data in my tables after user creation. I think to use hook_form_alter()
for $form_id == "user_register"
but I don't know how to say "after you created user, do this."
How can I do it in hook_form_alter()
?
i need to insert data in my tables after user creation. I think to use hook_form_alter()
for $form_id == "user_register"
but I don't know how to say "after you created user, do this."
How can I do it in hook_form_alter()
?
You can add custom submit handler to forms like this.
I'd also recommend to use Drupal's Triggers & Actions to achieve this. AFAIK there was a bug with one of the triggers that fire after user registration. Don't know if that has been fixed.