Problem adding a tab to the user menu I created a panel page using the Panels module, Contact list at the path messages/contact-list.

The Privatemsg module causes several tabs (Inbox, Sent messages, All messages) to be displayed across the top of pages with path messages.  I am attempting to add an additional tab that links to my Panels page, Contact list.

Based on the code in privatemsg.module for the "Sent messages" tab:

  $items['messages/sent'] = array(
    'title'            =&gt; 'Sent messages',
    'page callback'    =&gt; 'privatemsg_list_page',
    'page arguments'   =&gt; array('sent'),
    'file'             =&gt; 'privatemsg.pages.inc',
    'file path'        =&gt; drupal_get_path('module', 'privatemsg'),
    'access callback'  =&gt; 'privatemsg_user_access',
    'type'             =&gt; MENU_LOCAL_TASK,
    'weight'           =&gt; -12,
    'menu_name'        =&gt; 'user-menu',
  );


I added this code to hook_menu() in a custom module:

  $items['messages/contact-list'] = array(
    'title'            =&gt; 'Contact List',
    'page callback'    =&gt; 'drupal_goto',
    'page arguments'    =&gt; array('messages/contact-list'),
    'access callback'  =&gt; 'privatemsg_user_access',
    'access arguments' =&gt; array('read privatemsg'),
    'type'             =&gt; MENU_LOCAL_TASK,
    'weight'           =&gt; 10,
    'menu_name'        =&gt; 'user-menu',
  );


However, although this produces no errors, even after clearing the cache multiple times no tab appears anywhere.  I tried moving the code from my custom module into the privatemsg module to no effect.  I've looked at the documentation for hook_menu() but it still isn't clear to me what I'm doing wrong.
The reason for your problem is that page manager has already defined a menu entry for that path. Just as well, because the menu item you have created would cause an infinite chain of redirection. You would need to change the path for your panels page to be something different in order for the redirection to work.

But you can simply remove your menu entry altogether and use page manager to define the menu item for the page as a tab under Settings -> Menu. You shouldn't need any extra code to do that.