mirror of https://github.com/BOINC/boinc.git
Organize Community menu
Moved the forum link to Community -> Message Boards; enable Teams menu to be nested under this category automatically (DBOINCP-59)
This commit is contained in:
parent
e87c6a8fb2
commit
0a04894995
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue