You are here

function forum_menu in Drupal 6

Same name and namespace in other branches
  1. 4 modules/forum.module \forum_menu()
  2. 5 modules/forum/forum.module \forum_menu()
  3. 7 modules/forum/forum.module \forum_menu()

Implementation of hook_menu().

File

modules/forum/forum.module, line 83
Enable threaded discussions about general topics.

Code

function forum_menu() {
  $items['forum'] = array(
    'title' => 'Forums',
    'page callback' => 'forum_page',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_SUGGESTED_ITEM,
    'file' => 'forum.pages.inc',
  );
  $items['admin/content/forum'] = array(
    'title' => 'Forums',
    'description' => 'Control forums and their hierarchy and change forum settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'forum_overview',
    ),
    'access arguments' => array(
      'administer forums',
    ),
    'file' => 'forum.admin.inc',
  );
  $items['admin/content/forum/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/content/forum/add/container'] = array(
    'title' => 'Add container',
    'page callback' => 'forum_form_main',
    'page arguments' => array(
      'container',
    ),
    'access arguments' => array(
      'administer forums',
    ),
    'type' => MENU_LOCAL_TASK,
    'parent' => 'admin/content/forum',
    'file' => 'forum.admin.inc',
  );
  $items['admin/content/forum/add/forum'] = array(
    'title' => 'Add forum',
    'page callback' => 'forum_form_main',
    'page arguments' => array(
      'forum',
    ),
    'access arguments' => array(
      'administer forums',
    ),
    'type' => MENU_LOCAL_TASK,
    'parent' => 'admin/content/forum',
    'file' => 'forum.admin.inc',
  );
  $items['admin/content/forum/settings'] = array(
    'title' => 'Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'forum_admin_settings',
    ),
    'access arguments' => array(
      'administer forums',
    ),
    'weight' => 5,
    'type' => MENU_LOCAL_TASK,
    'parent' => 'admin/content/forum',
    'file' => 'forum.admin.inc',
  );
  $items['admin/content/forum/edit/%forum_term'] = array(
    'page callback' => 'forum_form_main',
    'access arguments' => array(
      'administer forums',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'forum.admin.inc',
  );
  $items['admin/content/forum/edit/container/%forum_term'] = array(
    'title' => 'Edit container',
    'page callback' => 'forum_form_main',
    'page arguments' => array(
      'container',
      5,
    ),
    'access arguments' => array(
      'administer forums',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'forum.admin.inc',
  );
  $items['admin/content/forum/edit/forum/%forum_term'] = array(
    'title' => 'Edit forum',
    'page callback' => 'forum_form_main',
    'page arguments' => array(
      'forum',
      5,
    ),
    'access arguments' => array(
      'administer forums',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'forum.admin.inc',
  );
  return $items;
}