drupal hook just before inserting/updating user info
Posted
by Senthil
on Stack Overflow
See other posts from Stack Overflow
or by Senthil
Published on 2010-05-18T12:16:06Z
Indexed on
2010/05/18
12:21 UTC
Read the original article
Hit count: 225
drupal-6
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
© Stack Overflow or respective owner