How to create a new route / menu in Drupal that does not automatically display a navigation link?
I am trying to create a simple page callback in Drupal that does not appear in the navigation menu.
I have a module named helloworld.
The file .modulecontains the following
function _helloword_page_callback()
{
return array('#markup'=>'The quick brown fox says hello, and the lazy dogs thanks you
for following conventions.');
}
function helloworld_menu()
{
$items['helloworld'] = array(
'title' => 'Hello World',
'page callback' => '_helloword_page_callback',
'access arguments' => array('content'),
'type' => MENU_CALLBACK
);
return $items;
}
This successfully provides the URL on the site
http:
However , I still get the link in the left navigation menu (Bartik), despite using
'type' => MENU_CALLBACK
So why is this not working? Will I set the menu item correctly? A more likely question is: how did I misinterpret the use of constants / menu type systems? Are there any additional caches to understand what
drush cc all
won't take care? What other steps can I take to debug this?