How can I do a custom form redirect on the user registration form? I added a custom submit function to the user registration form. I want to be able to redirect to the user profile edit. How can I get the uid of the record that is about to be created? global $user doesn't work:

function my_user_register_submit ($form, &amp;$form_state) {
  global $user;
  $form_state['redirect'] = 'user/' . $user-&gt;uid . '/edit?registration=1&amp;destination=blahblah'; 
}


Edit:

My use case is this: after registration I want to redirect the user to the "edit profile" page to complete the remaining profile fields. When they "skip" that or complete the form they go to their profile page.
However, when a ?destination parameter is passed into the register form I want to carry that value to the "edit profile" page and then direct the user to that destination page when they are done.
Login Toboggan has an option for this whereby you can use %uid as an argument for the redirect URL.

Literally a text box where you'd type /user/!uid/edit

It's also got a whole host of awesome features that are worth checking out :)