You are here

function advanced_forum_menu_alter in Advanced Forum 6.2

Same name and namespace in other branches
  1. 6 advanced_forum.module \advanced_forum_menu_alter()
  2. 7.2 advanced_forum.module \advanced_forum_menu_alter()

Implementation of hook_menu_alter().

File

./advanced_forum.module, line 57
Enables the look and feel of other popular forum software.

Code

function advanced_forum_menu_alter(&$callbacks) {

  // Take over the forum page creation so we can add more information.
  $callbacks['forum']['page callback'] = 'advanced_forum_page';

  // Turn 'forum' into a normal menu item so it appears in navigation.
  $callbacks['forum']['type'] = MENU_NORMAL_ITEM;
}