Menu item types in Drupal 6
Same name and namespace in other branches
- 7 includes/menu.inc \menu_item_types
Definitions for various menu item types.
Menu item definitions provide one of these constants, which are shortcuts for combinations of the above flags.
Parent topics
File
- includes/
menu.inc, line 92 - API for the Drupal menu system.
Constants
Name | Location | Description |
---|---|---|
MENU_CALLBACK |
includes/ |
Callbacks simply register a path so that the correct function is fired when the URL is accessed. They are not shown in the menu. |
MENU_DEFAULT_LOCAL_TASK |
includes/ |
Every set of local tasks should provide one "default" task, that links to the same path as its parent when clicked. |
MENU_LOCAL_TASK |
includes/ |
Local tasks are rendered as tabs by default. Use this for menu items that describe actions to be performed on their parent item. An example is the path "node/52/edit", which performs the "edit" task on "node/52". |
MENU_NORMAL_ITEM |
includes/ |
Normal menu items show up in the menu tree and can be moved/hidden by the administrator. Use this for most menu items. It is the default value if no menu item type is specified. |
MENU_SUGGESTED_ITEM |
includes/ |
Modules may "suggest" menu items that the administrator may enable. They act just as callbacks do until enabled, at which time they act like normal items. Note for the value: 0x0010 was a flag which is no longer used, but this way the values… |