tags:

views:

77

answers:

3

thanks for your answers

+3  A: 

MENU_NORMAL_ITEM creates a menu item while MENU_CALLBACK doesn't. That is the only difference.

googletorp
+4  A: 

The more precise answer is that hook_menu creates router items and also menu links are generated. MENU_NORMAL_ITEM generates a menu link which will appear in the navigation menu while MENU_CALLBACK does not add a menu link so it wont appear in the menu.

chx
What I like to point out is that hook_menu is a little confusing - it both defines the router that says that path X goes to function Y, but it also defines the navigation menu that displays the related links to the page you're on.
John Fiala
A: 

Addition to the above comment, MENU_CALLBACK can be used in some scenarios such as AJAX. Example: example.com/ajax/country_list is a MENU_CALLBACK which returns a list of countries in HTML,JSON or XML format... This menu doesn't appear in the browser. You can visit http://api.drupal.org/api/group/menu/6 for more information.

Tuong Le

related questions