By Daitaka on
I was just wondering...
If I want to modify the registration form, what's the 'proper' way to do it? Because, I seem to have two options:
1) Use hook_form_alter and do my modifications if $form_id == 'user_register'
2) Use hook_user and modify if $op == 'register'
Is there some subtle difference between these two that I'm missing?
Comments
In hook_user you can only
In hook_user you can only add form elements. You cannot modify or remove existing elements, you have to use hook_form_alter if you want to do that.
--
~/.singatrue: file not found