function advanced_forum_menu in Advanced Forum 6.2
Same name and namespace in other branches
- 5 advanced_forum.module \advanced_forum_menu()
- 6 advanced_forum.module \advanced_forum_menu()
- 7.2 advanced_forum.module \advanced_forum_menu()
Implementation of hook_menu().
File
- ./
advanced_forum.module, line 24 - Enables the look and feel of other popular forum software.
Code
function advanced_forum_menu() {
$items['admin/settings/advanced-forum'] = array(
'access arguments' => array(
'administer advanced forum',
),
'description' => 'Configure Advanced Forum with these settings.',
'page arguments' => array(
'advanced_forum_settings_page',
),
'page callback' => 'drupal_get_form',
'title' => 'Advanced Forum',
'file' => 'includes/settings.inc',
);
$items['forum/markasread'] = array(
'access callback' => 'advanced_forum_markasread_access',
'page callback' => 'advanced_forum_markasread',
'type' => MENU_CALLBACK,
'file' => 'includes/mark-read.inc',
);
if (variable_get('advanced_forum_add_local_task', TRUE)) {
$items['forum/view'] = array(
'title' => 'View Forums',
'page callback' => 'advanced_forum_page',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -100,
'file' => 'includes/core-overrides.inc',
);
}
return $items;
}