summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-24 20:59:32 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-24 20:59:32 +0000
commit5dcacebf263096cc79f4a2ca05ad39a4d62888ae (patch)
treec462e52045bdc07a191bf8c3ab90bad1a80659f4 /includes
parentc975b69d1c9fb349e4df6d16c9c645f8392c2759 (diff)
downloadbrdo-5dcacebf263096cc79f4a2ca05ad39a4d62888ae.tar.gz
brdo-5dcacebf263096cc79f4a2ca05ad39a4d62888ae.tar.bz2
#194166 rollback and additional comments by chx: developers can modify menu editing behavior with hook_form_alter(), no need for menu API hacks, which were half done anyway
Diffstat (limited to 'includes')
-rw-r--r--includes/menu.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index ef45b4e32..3dbdfb51f 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -81,7 +81,6 @@ define('MENU_IS_ROOT', 0x0001);
define('MENU_VISIBLE_IN_TREE', 0x0002);
define('MENU_VISIBLE_IN_BREADCRUMB', 0x0004);
define('MENU_LINKS_TO_PARENT', 0x0008);
-define('MENU_MODIFIABLE_BY_ADMIN', 0x0010);
define('MENU_MODIFIED_BY_ADMIN', 0x0020);
define('MENU_CREATED_BY_ADMIN', 0x0040);
define('MENU_IS_LOCAL_TASK', 0x0080);
@@ -102,7 +101,7 @@ define('MENU_IS_LOCAL_TASK', 0x0080);
* 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 | MENU_MODIFIABLE_BY_ADMIN);
+define('MENU_NORMAL_ITEM', MENU_VISIBLE_IN_TREE | MENU_VISIBLE_IN_BREADCRUMB);
/**
* Callbacks simply register a path so that the correct function is fired
@@ -113,8 +112,10 @@ define('MENU_CALLBACK', MENU_VISIBLE_IN_BREADCRUMB);
/**
* 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 of MENU_CALLBACK and MENU_SUGGESTED_ITEM are separate.
*/
-define('MENU_SUGGESTED_ITEM', MENU_MODIFIABLE_BY_ADMIN | MENU_VISIBLE_IN_BREADCRUMB);
+define('MENU_SUGGESTED_ITEM', MENU_VISIBLE_IN_BREADCRUMB | 0x0010);
/**
* Local tasks are rendered as tabs by default. Use this for menu items that