User registration form
Use hook_user_insert() to take action on the user account after creation:

function mymodule_user_insert(&amp;$edit, $account, $category) {
  //@TODO: use $account-&gt;uid &amp; $account-&gt;status to do stuff
}