Is there a way to move the My Inbox + number of messages to a different location, other than navigation?

When I go into site configuration/menu it seems like the Menu completely disappears, only to return once I leave to menu screen.

I am sorry if this is a duplicate issue.

Comments

MikeMoirano’s picture

anything?

jaydub’s picture

The menu item for the Inbox is a dynamic menu item. This is why you don't see it when you are on the
menu screen as that only deals with cacheable menu items (I believe).

http://api.drupal.org/api/function/hook_menu/5

The menu entry for the Inbox is of type MENU_DYNAMIC_ITEM which in the above
API page says:

Dynamic menu items change frequently, and so should not be stored in the database for administrative customization.

So there you go...Here is a snippet that you could use in your template.php file to add it. In my
case I have created a google-like user links block at the top right of my page and this snippet
creates the Inbox entry pretty much as it looks in the default privatemsg menu entry.

    if (module_exists('privatemsg')) {                    
      $new = _privatemsg_get_new_messages();
      $links[] = array(
        'data' => l(t('My Inbox') . ($new ? ' ('. $new .')' : ''), 'privatemsg'),
        'title' => t('Go to my inbox'),
      );
    }
bflora’s picture

Dude, what do I do with this? YOu left out any explanation of how to get this to actually show on my site? Is this a standalone function? Do I put this in php_variables? Do I call this? Do I have to cycle through the $links array? What's the final step?

sonden’s picture

Hello,

I asked myself the same question whether its possible to move the private message section. I tried the above code snippet in both, the template.php and the block but it does nothing...

I try to integrate the private messages as tab on the my account section, but so far couldn't succeed. Any help would be highly appreciated.

litwol’s picture

Assigned: Unassigned » litwol
Priority: Normal » Critical
Status: Active » Needs work

TODO: make privatemsg navigation menu as a block.

berdir’s picture

Status: Needs work » Closed (won't fix)

Sorry for pinging the participants, I am closing old issues.

This version of Privatemsg is not supported anymore, maybe it is already implemented in Privatemsg for Drupal 6 and if not, you are welcome to open a new issue for it.