summaryrefslogtreecommitdiff
path: root/modules/menu
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-06-30 20:45:45 +0000
committerDries Buytaert <dries@buytaert.net>2004-06-30 20:45:45 +0000
commit60513799a1c483b3a28c0243665d7c1f6f05a2ae (patch)
treef6ff79928b759d9832aa73710c365f992622c60b /modules/menu
parentfcded380a8cec5c83741d2281d97e6f6aa68fac5 (diff)
downloadbrdo-60513799a1c483b3a28c0243665d7c1f6f05a2ae.tar.gz
brdo-60513799a1c483b3a28c0243665d7c1f6f05a2ae.tar.bz2
- Patch #8941 by JonBob: allow local tasks to be ordered by weight, as well
as simplifying the theming of local tasks so they can be more easily rendered in a non-tab manner.
Diffstat (limited to 'modules/menu')
-rw-r--r--modules/menu/menu.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/menu/menu.module b/modules/menu/menu.module
index 8a11aa375..6177d99b2 100644
--- a/modules/menu/menu.module
+++ b/modules/menu/menu.module
@@ -194,6 +194,7 @@ function menu_disable_item($mid) {
$type = $menu['items'][$mid]['type'];
$type &= ~MENU_VISIBLE_IN_TREE;
$type &= ~MENU_VISIBLE_IN_BREADCRUMB;
+ $type |= MENU_MODIFIED_BY_ADMIN;
db_query('UPDATE {menu} SET type = %d WHERE mid = %d', $type, $mid);
menu_rebuild();
drupal_set_message(t('menu item disabled.'));