From 0a04894995bd8093346d249c80a251f164631eeb Mon Sep 17 00:00:00 2001 From: Tristan Olive Date: Wed, 5 Feb 2014 23:53:37 -0500 Subject: [PATCH] Organize Community menu Moved the forum link to Community -> Message Boards; enable Teams menu to be nested under this category automatically (DBOINCP-59) --- .../discussion_forums/discussion_forums.module | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drupal/sites/all/features/discussion_forums/discussion_forums.module b/drupal/sites/all/features/discussion_forums/discussion_forums.module index e1e67adb1d..67d5783b25 100644 --- a/drupal/sites/all/features/discussion_forums/discussion_forums.module +++ b/drupal/sites/all/features/discussion_forums/discussion_forums.module @@ -24,3 +24,14 @@ function discussion_forums_enable() { } } } + +function discussion_forums_menu_alter(&$items) { + // Change the forum menu item to use the path: community/forum + $items['community'] = $items['forum']; + $items['community']['title'] = t('Community'); + $items['community']['type'] = MENU_NORMAL_ITEM; + $items['community']['menu_name'] = 'primary-links'; + $items['community/forum'] = $items['community']; + $items['community/forum']['title'] = t('Message boards'); + unset($items['forum']); +}