How can I switch menus after a user logs in I'm trying to create a register/login links in the format "Register or Login" which is display for anonymous users and switched out with the user menu when a user is logged in.

I know I can preprocess those links as variables in template.php but am not sure how to access the user menu from template.php in order to write an if statement.

Ultimately, if I could do something like Forrst (images below), then tahts what I would love to end up with, but for now just trying to keep it sweet and simple.

From This:



To This after login:
You might do that with a simple block, rather than creating a menu, preprocess it to add the word between and check if the user is logged in.

Simply select anonymous/authenticated user under the "Roles" in block visibility settings.