I want to create link to user from the menu created by UI. I tried with hook_menu but the link is 'user', but it doesn't work, because don't want to create new page. I would like to alter title or add menu item programmicaly to use First name in the the menu title.
What i know is the 'mlid' = '3228' and menu name is 'menu-user-links-top'
PS. I also tried with hook_menu_link_alter but it doesn't work, for all users (the first name appears after pressing edit menu and uses only admin's first name).
user-name
?, So whenever user logged in the menu-item(its title) gets change to registered username.Username
that is a onestring
like you can see in Stackexchange site. Does your site have provision to provide first-name and last-name separately when user creates his/her account?user-name
based on the uid, and can show it in-place of menu-item as that variable is already there in Drupal. But, there is nothing called first-name and last-name part of that username variable in drupal, as far as I know. If there is, I am not aware presently.