thanks for your answers
+3
A:
MENU_NORMAL_ITEM
creates a menu item while MENU_CALLBACK
doesn't. That is the only difference.
googletorp
2010-07-21 13:54:01
+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
2010-07-21 15:36:59
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
2010-07-21 22:32:55
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
2010-07-25 05:16:39