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):


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


It works :)

| improve this answer | |

You may try Form Block module which will convert user registration form into block.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.