Messenger tab in user account
| Project: | Messenger |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
This is a slick module and one I was delighted to find. One of the two only things missing was a tab in the user account view.
Here is a modified version of messenger.module that loads the required record in menu_router. Just upload to the Messenger module root, delete messenger.module and rename the newly uploaded file to messenger.module.
The tab has weight '3' so that it will display as the last tab, after Track. If you prefer some other arrangement, you can modify the code at messenger.module line 679.
Deleting line 679 or changing the weight to '0' will cause the tab to display in alphabetical order, between Edit and Track. '-1' will put the tab before Edit and '-11' will put it before View.
If you plan to get fancier than that, you will neither need nor appreciate any help from me.
If you're uncomfortable replacing the whole file (which, by the way, has been altered in no other way than as advertised), here's the code to insert at messenger.module line 672.
<?php
$items['user/%user/messages'] = array(
'title' => 'Messages',
'page callback' => 'messenger_page',
'page arguments' => array(1, TRUE),
'access callback' => 'user_access',
'access arguments' => $access,
'type' => MENU_LOCAL_TASK,
'weight' => '3'
);
?>| Attachment | Size |
|---|---|
| messenger.module.txt | 19.92 KB |

#1
Just an FYI - This module is currently unmaintained.
Michelle
#2
Aaah. So I can play with it to my heart's content!
#3
markpenny - If you are interested, you can take it over. There are existing users on it and it would be nice to have it maintained as there is currently no conversion path to privatemsg, which is the module this duplicates.
Michelle
#4
That might be pushing it at the moment. I'm a very low-grade developer for now, not really up to maintaining anything but my determination. But I think I will continue to muck around.
#5
Well, if you change your mind, just file an issue in the webmaster's queue.
Michelle
#6
Sure thing. Will do. Thanks.