Revision: 6544
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 29, 2008 08:33 by shrop
Initial Code
<?php global $user; if (!$user->uid) { ?> <div id="register-button"> <p><a href="/user/register">Click Here to Register</a></p> </div> <?php } ?>
Initial URL
Initial Description
I use this code to place in blocks or pages to show a link to the user registration page if the user is not currently logged in. An example is a block I have setup on the home page of http://www.lightentheload.net. If the user is logged in, the block goes away.
Initial Title
Drupal Check for User Login
Initial Tags
drupal
Initial Language
PHP