[support] MENU_CALLBACK still inserting menu item

Paul Kim pkim at reachlocal.com
Thu Jul 17 20:16:26 UTC 2008


Nevermind, I found another array element that was setting this to 
MENU_NORMAL_ITEM.

Paul Kim wrote:
> Hello,
>
> I have a hook_menu implementation that I want to refer to a function 
> callback to a specific URL with 'type" => MENU_CALLBACK, but it is still 
> putting it in the main nav menu bar. What am I doing wrong?
>
>       $items[] = array(
>         'path'  => 'user/'. arg(1) .'/profile',
>         'title' => 'Profile',
>         'callback' => 'node_page_edit',
>         'callback arguments' => array($node),
>         'type' => MENU_CALLBACK,
>         'access' => $access,
>       );
>
> Thanks in advance!
>   



More information about the support mailing list