drupal hook just before inserting/updating user info
- by Senthil
Hi,
I want to hook into drupal's user registration and be able to stop it or allow it to proceed just before database insert. All validations and 3rd party stuff must be done and just before inserting I need to hook in.
What is the hook and the operation to do this?
I tried 'validate' operation in the hook_user. But, after I check against my logic and let the registration proceed, it should not fail due to some other validation.
If I let it proceed, no application logic after that should stop the registration (unless the DB engine fails or something of course). If I stop it, I will set a form error so that nothing happens.
How can this be accomplished?
P.S. I am using Drupal 6.16