This is a question for chx, but I posted it publicly so we all benefit from his reply.<br><br>I found a weird problem with the menus in D6. Most probably I am missing something<br>obvious, but I am missing what it is.<br><br>
This does work. Note that the lists inherits from admin, and it is a NORMAL item.<br><br>function lists_menu() {<br> $items = array();<br> $items['admin/lists'] = array(<br> 'title' => t('Mailing lists'),
<br> 'page callback' => 'drupal_get_form',<br> 'page arguments' => array('lists_subscribe'),<br> 'access' => user_access('access content'),<br> 'type' => MENU_NORMAL_ITEM,
<br> 'file' => 'lists.module',<br> );<br> return $items;<br>}<br><br>This, which is what I want, does not show the lists path anywhere, not under menu <br>as disabled, nothing (I marked the changed lines with an *).
<br><br>function lists_menu() {<br> $items = array();<br>* $items['lists'] = array(<br> 'title' => t('Mailing lists'),<br> 'page callback' => 'drupal_get_form',
<br> 'page arguments' => array('lists_subscribe'),<br> 'access' => user_access('access content'),<br>* 'type' => MENU_SUGGESTED_ITEM,<br> 'file' => '
lists.module',<br> );<br> return $items;<br>}<br><br clear="all">The latter is the one needed so that the path can be enabled or disabled in the <br>menus as needed. This is the way it works on D5.<br><br>What is amiss here?
<br>-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com">2bits.com</a>, Inc.<br><a href="http://2bits.com">http://2bits.com</a><br>Drupal optimization, development, customization and consulting.