Just thinking out loud here, but probably what you could do is do a hook_form_alter and add a validation handler.  Inside that validation handler, you could set the $user object to inactive/blocked. <br><br>See: <a href="http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/6#validate">http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/6#validate</a><br>
<br><br><div class="gmail_quote">On Sat, Nov 21, 2009 at 5:19 PM, chocba <span dir="ltr">&lt;<a href="mailto:chocba@gmail.com">chocba@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
I would like to  perform  a validation on a profile field dispalyed in user<br>
registration. If this validation fail, I would like to create the user<br>
account and set his state to blocked. If success, then the user will remain<br>
as active. Please hlep me how can I achieve this functionality. Right now,<br>
I&#39;m performing the validation implementing hook_user in profile module. But<br>
how do I make the user status as blocked instead of active, if the profile<br>
field validation fails?<br>
--<br>
View this message in context: <a href="http://old.nabble.com/Create-User-Account-In-A-Blocked-State-tp26460928p26460928.html" target="_blank">http://old.nabble.com/Create-User-Account-In-A-Blocked-State-tp26460928p26460928.html</a><br>

Sent from the Drupal - Support mailing list archive at Nabble.com.<br>
<font color="#888888"><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br>