How do I put the user registration form on my front page? I'm using Panels and have a panel page for my front page.  I found a discussion for Drupal 6 but the code doesn't work for Drupal 7:
http://drupal.org/node/257721

I would like to show the user registration form on the front page to make it extremely easy for new users to sign up.
You just need to add a "New custom content" to a panel pane and add the following code to the body (you need to have PHP format selected):

&lt;?php

if(user_is_anonymous()) {  
  $form = drupal_get_form('user_register_form');
  print drupal_render($form);
}

?&gt;


It works :)