You are here

function bakery_user_page in Bakery Single Sign-On System 6.2

Same name and namespace in other branches
  1. 6 bakery.module \bakery_user_page()
  2. 7.4 bakery.module \bakery_user_page()
  3. 7.2 bakery.module \bakery_user_page()

Access callback for path /user.

Displays user profile if user is logged in, or login form for anonymous users.

File

./bakery.module, line 593

Code

function bakery_user_page() {
  global $user;
  if ($user->uid) {
    menu_set_active_item('user/' . $user->uid);
    return menu_execute_active_handler();
  }
}