Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
BerdirReset 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.
Comment #2
BerdirComment #3
mherchelThanks 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!
Comment #4
BerdirWell, 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.
Comment #5
oadaeh CreditAttribution: oadaeh as a volunteer commentedThis 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.