[development] Can I Indicate failure from hook_user?
pushyamitra at gmail.com
Wed Sep 3 09:25:26 UTC 2008
On Mon, Jul 21, 2008 at 3:53 PM, Steven Jones <darthsteven at gmail.com> wrote:
> Always good to see someone new to Drupal.
> You'll probably want to do something with the $op == "validate"
> argument of hook_user. Throw an error if you don't want the
> update/insert to continue.
I am back with a question related to this.
What is order in which hooks are called? For e.g. let's say there's a
captcha module. Now as I see on my machine, hook_user is called first. After
that, validation of captcha happens.
Is there any way I can control the sequence in which validations occur? What
I want to do is, after all other modules have done their validations and
everything is ok, only then should my function be called, in the end. My
validation function should be final validation function. Is there any way to
Any help on this appreciated. Any document which explains how actually hooks
are called would help too.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development