o

Drupal Module Development

Simple Login for Drupal 7, show username and logout links

By t.wheeler on Dec 23, 2011 - 09:18am

Drupal ships with a user login block, but it's a little heavy for a lot of projects I work on.  It includes the login form itself, and that's kind of a pain to style and might not have been considered in the initial design phase of the project.  What I often need is just a more simple "Hello [user], Logout" link, or - in the case that user hasn't logged in yet, a simple "Login or Create Account" link.  

Subscribe to Drupal Module Development