function comment_admin in Drupal 7
Same name and namespace in other branches
- 5 modules/comment/comment.module \comment_admin()
- 6 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 - Implements hook_menu().
File
- modules/
comment/ comment.admin.inc, line 11 - 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);
}
}