Menu item types
Same name and namespace in other branches
- 7.x drupal-7.x/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
Archivo
- drupal-6.x/
includes/ menu.inc, line 92 - API for the Drupal menu system.
Constants
|
Nombre |
Ubicación | Descripción |
|---|---|---|
| MENU_CALLBACK |
drupal-6.x/ |
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 |
drupal-6.x/ |
Every set of local tasks should provide one "default" task, that links to the same path as its parent when clicked. |
| MENU_LOCAL_TASK |
drupal-6.x/ |
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 |
drupal-6.x/ |
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 |
drupal-6.x/ |
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… |