Monday, July 4, 2011

Custom Drupal User Login/Logout Links

For no logged user it presents
a) User Login

For logged in users the links become
a) My Account -> Links to User Profile
b) Logout


<?php
global $user;
if ($user->uid != 0) {
print l('My Account', 'user/'. $user->uid) . " | ";
print l('Logout','user/logout/');
}
else {
print l('User Login','user/');
}
?>

6 comments:

Anonymous said...

If, at the end of this time period, the score is tied, there are two options the officials can take.
By obtaining increasingly more favour using their company people in your social
settings, the more handle you will need to acquire what you would like, and thru The particular Coalition Game you have just about the most effective tips for hypnotherapy that gives you the talent to
ensure that you influence other folks. The nature of Reddit's platform makes it possible -- through great and creative effort, it appears -- to give users a gift of the unexpected, rather than deriving humor from humiliation.

Take a look at my web blog; please click the following internet site **

Anonymous said...

This is a unusual looking cooking lid is made of soft silicone.
If you prefer to use frozen strawberries, they work in this cake equally as well as the fresh.
Cake decorating is absolutely not confined to large cakes by any means.


Also visit my website ... cake And ice cream

Anonymous said...

Enjoying the service of Odyssey - Streaming - Radio is so easy.
Next, build a list of prospects and develop
a relationship with those prospects on your list. Yours Truly, Johnny Dollar: The Duke Red Matter (Part One;
CBS, 1956)'Abbott Stables's Duke Red is a thoroughbred destroyed over a serious injury
in an accident, and Dollar (Bob Bailey)'asked to review a $65,000 insurance claim on the horse'smells
trouble when the stable's business manager is dismissed after filing the claim, and its veterinarian may have destroyed the horse a little too swiftly.

Also visit my blog post radio gold 90.5 - -

Anonymous said...

If, at the end of this time period, the score is tied, there are two options the officials can take.
All that energy is boxed in, amplified by the space.
It sounds like you log into the game and join a "Shadow war" server and play
with hundreds of other players within that PVP world, but
that world is different from the cooperative Arkfall boss hunting world.


My site - game angry birds walkthrough - www.spielespielen24.de -

Anonymous said...

Attractive component of content. I just stumbled upon your blog and in accession capital to say that I
acquire in fact enjoyed account your blog posts.
Anyway I will be subscribing on your feeds and even I fulfillment you get admission to constantly rapidly.


Feel free to visit my page; Kim Kardashian Hollywood Cheats android

mcbende said...

p6s17c3a30 x0w91p9f04 m4y82i0r17 s4j46d4m08 e6f48w3u01 j2i86f6p00