Hi all,

I apologize and thank you in advance as this is my first post, I know this is an issue queue, but I'm pretty new at Drupal dev and I don't know where to post my question. So feel free to redirect me to the proper resource to answer my question. Here it is:

I would like to customize the output of the admin menu. I have added a couple fields to the "user" entity to allow more details for each user (first name, last name, picture, etc.).

Out-of-the-box, the admin menu toolbar displays, on the right side, the username in a red background with rounded corners. In the present case, we can read "admin", which is the username for the account.

Instead of displaying the username ("admin"), I would like to display the field "field_first_name", which is "Larry", so the user can read "Hi Larry" instead of "Hi admin".

To acheive this, I tried to play around with the "hook_admin_menu_output_alter()" function in "admin_menu.api.php", but I can't figure out how to do it.

Any idea anyone ?

Thanks a lot for any answer in this matter.

regards,

Laurent

Comments

truls1502’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)
Issue tags: +postponed2w

I am sorry for no reply until now.

There are many issues regarding this module admin_menu which is a bit difficult for us to follow up since some of the issues might be already outdated, or is already fixed by the module or any other modules or itself core which means that the problem might no longer need to be fixed.

We can see that the issue has been created for a few years ago, I hope it is okay for you that I am postponing the issue, and give you around two weeks. If you still face the problem, could you tell us the step by step when until you get the error message or what is frustrated you, and a list of modules you are using related to admin_menu and a screenshot that might help us? So it makes us easier to reproduce your issue.

However, after two weeks with no feedback - we will close this issue. So in case, you noticed it after the issue is closed, do not hesitate to reopen it like and fill information which is mentioned above.

So before giving us a feedback, do you mind to test it again with our latest 7.x-3.x-dev?

Thank you for understanding! :)

truls1502’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
Issue tags: -postponed2w

This issue has been automatically marked as closed because it has not had recent activity after the last post.

However, if you or someone is still facing the same issue as described to the issue, could you please to re-open the issue by changing the status of the issue, and add an explanation with more details which can help us to reproduce your situation.

Again, thank you for your contributions.