Definitions for various menu item types.
Menu item definitions provide one of these constants, which are shortcuts for combinations of the above flags.
Constants
| Name | Description |
|---|---|
| MENU_CALLBACK | 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 | Every set of local tasks should provide one "default" task, that links to the same path as its parent when clicked. |
| MENU_LOCAL_TASK | 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 | 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 | 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… |
includes/