Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ff5c6ad993d5c6c18032 to your computer and use it in GitHub Desktop.
Save anonymous/ff5c6ad993d5c6c18032 to your computer and use it in GitHub Desktop.
From 3be836d213e889c732e199f35266d4b62ee51c05 Mon Sep 17 00:00:00 2001
From: Scott Reynolds <scott@parentsclick.com>
Date: Thu, 22 Apr 2010 10:41:57 -0700
Subject: [PATCH] because dashboard alters in making itself the default local task for admin/, make admin in the management menu and give it a -100 weight
---
modules/dashboard/dashboard.module | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/dashboard/dashboard.module b/modules/dashboard/dashboard.module
index 22f7fd7..a922a7a 100644
--- a/modules/dashboard/dashboard.module
+++ b/modules/dashboard/dashboard.module
@@ -69,6 +69,8 @@ function dashboard_menu_alter(&$items) {
// Make the dashboard the default local task on /admin.
$items['admin']['title'] = 'Dashboard';
$items['admin']['page callback'] = 'dashboard_admin';
+ $items['admin']['menu_name'] = 'management';
+ $items['admin']['weight'] = -100;
$items['admin/dashboard']['type'] = MENU_DEFAULT_LOCAL_TASK;
$items['admin/by-task']['type'] = MENU_LOCAL_TASK;
}
--
1.6.4.3+GitX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment