function page_example_menu() { // This is the minimum information you can provide for a menu item. $items['foo'] = array( 'title' => 'Foo', 'page callback' => 'page_example_foo', 'access arguments' => array('access foo'), ); // By using the MENU_CALLBACK type, we can register the callback for this // path but not have the item show up in the menu; the admin is not allowed // to enable the item in the menu, either. $items['bar/baz/%/%'] = array( 'title' => 'Baz', 'page callback' => 'page_example_baz', 'page arguments' => array(2, 3), 'access arguments' => array('access baz'), 'type' => MENU_CALLBACK, ); // Here is a menu item that doesn't register a callback. By default, the // attributes are inherited from the parent menu item. In this case, the // permissions of the parent suffice but we to override the title if // they enter some "magic" parameters. Note: if you remove the 'type' // attribute, the item will appear in the menu. $items['bar/baz/52/97'] = array( 'title' => 'The magic numbers', ); return $items; }