Drupal Check for User Login


/ Published in: PHP
Save to your folder(s)

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.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.