Hi,

I renamed the menu item for private messages from "Messages" to "Private Messages".

Previously, it would tell the user how many messages are unread (ex. "Messages (1)"), but now it doesn't do this anymore.

How do I re-enable this functionality?

Great module by the way (Its being used on www.gatortailgating.com)

Thanks again!

Comments

Berdir’s picture

Title: How to re-enable the message count on the menu item » Display warning when trying to rename 'Messages' menu item.
Category: support » feature
Status: Active » Fixed
Issue tags: +README.txt

Reset the menu item. Instead of changing the name there, use string overrides (http://drupal.org/project/string_override) to change the name.

This is something for the README, maybe we should even disallow renaming it with a hook_form_alter() or at least display a warning.

Berdir’s picture

Status: Fixed » Active
mherchel’s picture

Thanks for the quick reply.

I'm concerned that if I use string overrides to override "messages", it will affect other strings in my site (...it's a pretty common word).

Is there any other way to go about this? (preprocess function or something else)

Appreciate your help. Thanks!

Berdir’s picture

Well, you can use hook_menu_alter() and use a different title callback, in which you can use whatever strings you want.

See the first entry at http://blog.worldempire.ch/api/function/privatemsg_menu/1, replace privatemsg_title_callback with something else, then copy http://blog.worldempire.ch/api/function/privatemsg_title_callback/1 and change the text.

oadaeh’s picture

Version: » 6.x-2.x-dev
Issue summary: View changes
Status: Active » Closed (won't fix)

This issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-1.x branch (bug fixes only) or the 7.x-2.x branch.
Thank you.