This is a simple php script for Drupal that allows you to check if user is logged in and return a custom link.
I use this mainly to toggle between a login button and a logout button.
This can be embedded directly in your page.tpl.php or any variation of that.
| Attachment | Size |
|---|---|
| check_user_logged_in.txt | 156 bytes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
