summaryrefslogtreecommitdiff
path: root/modules/comment/comment.admin.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-22 15:38:52 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-22 15:38:52 +0000
commit32c34106dc98e288687cff933373e164cfc47563 (patch)
tree832749f155dd3485ccfa6834924e0a3d485a78be /modules/comment/comment.admin.inc
parent424cc9bbb1f790b0f325067a6b3b29fd765c609e (diff)
downloadbrdo-32c34106dc98e288687cff933373e164cfc47563.tar.gz
brdo-32c34106dc98e288687cff933373e164cfc47563.tar.bz2
#606608 follow-up by Gábor Hojtsy and sun: Go back to numeric placeholders for comment menu paths for performance.
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r--modules/comment/comment.admin.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc
index 26f62696d..d68e4e0fb 100644
--- a/modules/comment/comment.admin.inc
+++ b/modules/comment/comment.admin.inc
@@ -234,6 +234,16 @@ function comment_multiple_delete_confirm_submit($form, &$form_state) {
}
/**
+ * Page callback for comment deletions.
+ */
+function comment_confirm_delete_page($cid) {
+ if ($comment = comment_load($cid)) {
+ return drupal_get_form('comment_confirm_delete', $comment);
+ }
+ return MENU_NOT_FOUND;
+}
+
+/**
* Form builder; Builds the confirmation form for deleting a single comment.
*
* @ingroup forms