function bakery_user_page in Bakery Single Sign-On System 7.4
Same name and namespace in other branches
- 6.2 bakery.module \bakery_user_page()
- 6 bakery.module \bakery_user_page()
- 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 375
Code
function bakery_user_page() {
global $user;
if ($user->uid) {
menu_set_active_item('user/' . $user->uid);
return menu_execute_active_handler();
}
}