How to remove a menu path defined in hook_menu from naviagtion I've added two paths for use my my module (for OAuth authentication), but I don't want them to appear as links in menus. I tried defining their 'type' as MENU_CALLBACK but they still appear. 

Is there a better way to define paths which aren't necessarily pages.
Don't add type to the array in hook_menu, it will not be displayed as a menu, but still will be accessible (by code)

$items['menu/%/link1'] = array(
   'title' =&gt; 'Link1',
// 'type' =&gt; MENU_LOCAL_TASK,
   'page callback' =&gt; 'link1()',
   'page arguments' =&gt; array(1),
   'access callback' =&gt; TRUE, //'has_access',
);