Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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().
Comment | File | Size | Author |
---|---|---|---|
comment-remove-edit-callback.patch | 10.23 KB | yched | |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commented$comment is an object almost everywhere now so this makes sense.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD.
Comment #4
markabur CreditAttribution: markabur commentedIn 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.