How can I customize a menu to be intuitive for my users: show user name, have dropdown items I am looking to create a user menu. The menu when not logged in should have two options: 1. create account 2. sign in. These items will be displayed in-line. 

Once logged in, I want the menu to have two options: 1. account name 2. sign out

When logged in the "account name" menu item will have a drop down with menu items linking to the various user tabs present in the user backend.

Information: I am working with a theme I downloaded. The main menu has a fairly extensive dropdown function but I do not know how it is doing it. If I could figure that out then I could apply that to the user menu for the function I want. 

The reason I want this done: I had a potential customer loose interest and leave my site because he could not figure out where he could download his files from. So I figured I needed to create a easy to understand user menu.

Thanks for your help!

Drupal 7
link to my website: sonikloops.com
This can be easily done with the available following contributed modules.


Create menus from Admin UI, and restrict the visibility by Menu Per Role module. Here, you might like to to show the menus Create Account and Sign In only to anonymous (not logged in) users.
You can use the Menu Token module, if you wish to show username as menu. You'll need to install the Token module and the Ctools module in order to do this. This can be done in following way:


Create a menu link in your User menu using Admin UI by visiting http://yoursite.url/admin/structure/menu/manage/user-menu.

In the link title you input the user name. The following will replace the [current-user:name] with the username of the logged in user. You can even use other fields, under the "Menu Token Options" > "Replacement Patterns".

The output of the above:

As admin:

As an authenticated user:


For the dropdown feature of the menu, you can use the DHTML Menu or the Superfish menu.


Hope that helps. Please feel free to ask questions.