I've got a custom module which I use to define some urls that are used for a json api. I don't want them to show up in the Navigation menu. How do I change my hook_menu configuration so these urls are excluded from the menu?
Here is an example of two of my menu items that I want to hide, and a third one I would like to be visible:
$items['mymodule/1/login'] = array(
'page callback' => 'mymodule_login',
'access callback' => TRUE,
);
$items['mymodule/1/signup'] = array(
'page callback' => 'mymodule_signup',
'access callback' => TRUE,
);
$items['mymodule_bulkupload'] = array(
'title' => 'Bulk Upload',
'page callback' => 'drupal_get_form',
'page arguments' => array('mymoduleapi_form_bulkupload'),
'access callback' => 'mymoduleapi_user_is_mymodule_owner',
);
I end up getting a bunch of empty items in my Nav menu. I would like to be able to hide those api menu items.
How do I control that from within hook_menu?