I created a config page for my new module. Whenever I enable the module, a link to the config page is added to the Management menu across the top of the screen as well as a configure link next to the module name in the Modules page. How do I configure this page so that it just shows up with the configure link on the modules page and not in the menu. Below is the code from hook_menu:
$items['admin/mymodule/settings'] = array( 'title' => 'mymodule Module Configuration', 'description' => 'Settings for my module', 'page callback' => 'drupal_get_form', 'page arguments' => array('_mymodule_admin'), 'access arguments' => array('administer mymodule settings'), 'type' => MENU_NORMAL_ITEM, );
The module has a function called _mymodule_admin that returns a form array. The config page works great. I just want to prevent the link from appearing on the management menu when the module is activated on my production site.
My info file contains the following line
configure = 'admin/timesdb/settings'
And my form callback has includes this line
With the relevant form elements assigned above it.