DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Login Destination

03.16.2007
| 3038 views |
  • submit to reddit
        // description of your code here

// login destination module enabled
  global $user; $myid = $user->uid;
return ($user->uid == 1) ? 'admin/'.$myid : 'user/'.$myid.'/edit/Address' ;