Same name and namespace in other branches
  1. 6.x modules/comment/comment.admin.inc \comment_admin()
  2. 7.x modules/comment/comment.admin.inc \comment_admin()

Menu callback; present an administrative comment listing.

1 string reference to 'comment_admin'
comment_menu in modules/comment/comment.module
Implementation of hook_menu().

File

modules/comment/comment.module, line 1150
Enables users to comment on published content.

Code

function comment_admin($type = 'new') {
  $edit = $_POST;
  if ($edit['operation'] == 'delete' && $edit['comments']) {
    return drupal_get_form('comment_multiple_delete_confirm');
  }
  else {
    return drupal_get_form('comment_admin_overview', $type, arg(4));
  }
}