Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ashiwebi on
I want to add logout button at the top of page.How I can achive this.
Comments
use the code on page.tpl.php for username and logout option
global $user;
if ($user->uid)
Logged in as:
print l($user->name,'user/'.$user->uid);
|print l("logout","logout");