function comment_admin

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

Menu callback; present an administrative comment listing.

2 string references to 'comment_admin'
comment_menu in drupal-7.x/modules/comment/comment.module
Implements hook_menu().
drupal-6.filled.database.php in drupal-7.x/modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.

Archivo

drupal-7.x/modules/comment/comment.admin.inc, line 11
Admin page callbacks for the comment module.

Código

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);
  }
}