And typically not on the "menus" page where I might be able to get rid of it! Damn thing pops up every so often when browsing around the site, and I can't quite work out how to kick it off the menu.

Any suggestions?

thanks :)

Comments

ryivhnn’s picture

Status: Active » Closed (fixed)

Never mind, didn't realise I had to delete the "menu link" thing in the settings. Sorry to bother :)

ryivhnn’s picture

Status: Closed (fixed) » Active

And now it's showing up as a blank dot point. Aargh. Shoot me, and more apologies.

Greybear’s picture

Had the same problem... I just edited privatemsg.module and commented out the function privatemsg_menu($may_cache).

No menu hook, no menuitem :)

It's just a lame workaround, but works.

Greybear’s picture

Don't try what i wrote yesterday... It makes the privatmsg system not-working :)

I'll digg in to fix that problem.

Greybear’s picture

Status: Active » Needs review

Okay, solved it. Edit privatemsg.module, find this:

    $items[] = array('path' => 'privatemsg/inbox',
                     'title' => t(variable_get('privatemsg_menu_link', 'My inbox')) . ($new ? ' ('. $new .')' : ''),
                     'callback' => 'privatemsg_list',
                     'type' => $user->uid && (isset($user->privatemsg_allow) ? $user->privatemsg_allow : 1) ? MENU_DYNAMIC_ITEM : MENU_CALLBACK);

(it's near line 117)

Just add an IF:

if (variable_get('privatemsg_menu_link', 'My inbox')!='')
{
    $items[] = array('path' => 'privatemsg/inbox',
                     'title' => t(variable_get('privatemsg_menu_link', 'My inbox')) . ($new ? ' ('. $new .')' : ''),
                     'callback' => 'privatemsg_list',
                     'type' => $user->uid && (isset($user->privatemsg_allow) ? $user->privatemsg_allow : 1) ? MENU_DYNAMIC_ITEM : MENU_CALLBACK);
}

As a result if you delete the "menu link" setting, the menu item disappears.

berdir’s picture

Status: Needs review » Fixed

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.

berdir’s picture

Status: Fixed » Closed (won't fix)