function comment_admin

Page callback: Presents an administrative comment listing.

Parameters

$type: The type of the overview form ('approval' or 'new'). See comment_admin_overview() for details.

See also

comment_menu()

comment_multiple_delete_confirm()

1 string reference to 'comment_admin'
comment_menu in drupal/core/modules/comment/comment.module
Implements hook_menu().

File

drupal/core/modules/comment/comment.admin.inc, line 21
Admin page callbacks for the Comment module.

Code

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