diff --git a/core/includes/menu.inc b/core/includes/menu.inc index 04f1f30..a1c8a01 100644 --- a/core/includes/menu.inc +++ b/core/includes/menu.inc @@ -119,11 +119,6 @@ const MENU_VISIBLE_IN_TREE = 0x0002; /** - * Internal menu flag -- menu item is visible in the breadcrumb. - */ -const MENU_VISIBLE_IN_BREADCRUMB = 0x0004; - -/** * Internal menu flag -- menu item links back to its parent. */ const MENU_LINKS_TO_PARENT = 0x0008; @@ -163,7 +158,7 @@ * the administrator. Use this for most menu items. It is the default value if * no menu item type is specified. */ -define('MENU_NORMAL_ITEM', MENU_VISIBLE_IN_TREE | MENU_VISIBLE_IN_BREADCRUMB); +define('MENU_NORMAL_ITEM', MENU_VISIBLE_IN_TREE); /** * Menu type -- A hidden, internal callback, typically used for API calls. @@ -181,32 +176,7 @@ * Note for the value: 0x0010 was a flag which is no longer used, but this way * the values of MENU_CALLBACK and MENU_SUGGESTED_ITEM are separate. */ -define('MENU_SUGGESTED_ITEM', MENU_VISIBLE_IN_BREADCRUMB | 0x0010); - -/** - * Menu type -- A task specific to the parent item, usually rendered as a tab. - * - * Local tasks are 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". - */ -define('MENU_LOCAL_TASK', MENU_IS_LOCAL_TASK | MENU_VISIBLE_IN_BREADCRUMB); - -/** - * Menu type -- The "default" local task, which is initially active. - * - * Every set of local tasks should provide one "default" task, that links to the - * same path as its parent when clicked. - */ -define('MENU_DEFAULT_LOCAL_TASK', MENU_IS_LOCAL_TASK | MENU_LINKS_TO_PARENT | MENU_VISIBLE_IN_BREADCRUMB); - -/** - * Menu type -- A task specific to the parent, which is never rendered. - * - * Sibling local tasks are not rendered themselves, but affect the active - * trail and need their sibling tasks rendered as tabs. - */ -define('MENU_SIBLING_LOCAL_TASK', MENU_IS_LOCAL_TASK | MENU_VISIBLE_IN_BREADCRUMB); +define('MENU_SUGGESTED_ITEM', 0x0010); /** * @} End of "defgroup menu_item_types". @@ -219,16 +189,6 @@ */ /** - * Internal menu status code -- Menu item was not found. - */ -const MENU_NOT_FOUND = 404; - -/** - * Internal menu status code -- Menu item access is denied. - */ -const MENU_ACCESS_DENIED = 403; - -/** * Internal menu status code -- Menu item inaccessible because site is offline. */ const MENU_SITE_OFFLINE = 4; @@ -248,12 +208,6 @@ * Parameters for a menu tree. */ - /** - * The maximum number of path elements for a menu callback - */ -const MENU_MAX_PARTS = 9; - - /** * The maximum depth of a menu links tree - matches the number of p columns. *