1 comment.admin.inc comment_admin($type = 'new')

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()

File

core/modules/comment/comment.admin.inc, line 17
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 backdrop_get_form('comment_multiple_delete_confirm');
  }
  else {
    return backdrop_get_form('comment_admin_overview', $type);
  }
}