Followup for #524652: Overhaul comment form and preview and #523950: Update comment rendering :
comment_edit() is now a simple wrapper around a drupal_get_form(), it can peacefully die.
This implies removing the $edit array in comment_form(), in favor of a $comment object. This is nice cleanup too, and is consistent with node_form().

CommentFileSizeAuthor
comment-remove-edit-callback.patch10.23 KByched
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

$comment is an object almost everywhere now so this makes sense.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

markabur’s picture

In the form state the authored-on date is called 'date' but in the comment object it is called 'created' -- so, $edit['date'] should have changed into $comment->created, not $comment->date. Please see followup issue #1005004: Editing a comment destroys its creation date.