function comments_menu

7.x comments.module comments_menu()
6.x comments.module comments_menu()
4.x comments.module comments_menu()
5.x comments.module comments_menu()

File

modules/comments/comments.module, line 9

Code

function comments_menu() {
  $items = array();

  $items ["comments"] = array(
    "title" => "Comments",
    "page_callback" => "comments_display_main",
    "access_callback" => "comments_can_access_comments",
    "type" => MENU_TYPE_TAB,
    "tab_family" => "system",
    "page_settings" => array(
      "display_currently_advising" => TRUE,
      "display_greeting" => TRUE,
      "page_has_search" => TRUE,
    ),
    "weight" => 35,
  );

  $items ["comments/save-comment"] = array(
    "page_callback" => "comments_perform_save_comment",
    "access_arguments" => array("can_save_comments"),
    "type" => MENU_TYPE_CALLBACK,
  );

  $items ["comments/delete-comment"] = array(
    "page_callback" => "comments_perform_delete_comment",
    "access_arguments" => array("can_save_comments"),
    "type" => MENU_TYPE_CALLBACK,
  );


  $items ["comments/popup-display-all-comments"] = array(
    "title" => "Comments",
    "page_callback" => "comments_popup_display_all_comments",
    "access_arguments" => array("view_comments"),
    "page_settings" => array(
      "page_has_search" => FALSE,
      "page_is_popup" => TRUE,
      "page_hide_report_error" => TRUE,
      "bool_print" => TRUE,
    ),
    "type" => MENU_TYPE_CALLBACK,
  );


  $items ["comments/popup-display-comment"] = array(
    "title" => "Comment",
    "page_callback" => "comments_popup_display_comment",
    "access_arguments" => array("view_comments"),
    "page_settings" => array(
      "page_has_search" => FALSE,
      "page_is_popup" => TRUE,
      "page_hide_report_error" => TRUE,
      "bool_print" => TRUE,
    ),
    "type" => MENU_TYPE_CALLBACK,
  );

  return $items;
}