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.

Constants

NameDescription
MENU_CALLBACKCallbacks 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_TASKEvery set of local tasks should provide one "default" task, that links to the same path as its parent when clicked.
MENU_LOCAL_TASKLocal 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_ITEMNormal 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_ITEMModules 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/menu.inc, line 91

Login or register to post comments