You are here

function bakery_user_page in Bakery Single Sign-On System 6

Same name and namespace in other branches
  1. 6.2 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.

1 string reference to 'bakery_user_page'
bakery_menu_alter in ./bakery.module
Implementation of hook_menu_alter().

File

./bakery.module, line 343

Code

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