Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
comment.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2009 at 23:33 UTC
Updated:
22 Dec 2010 at 18:54 UTC
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 commented$comment is an object almost everywhere now so this makes sense.
Comment #2
dries commentedCommitted to CVS HEAD.
Comment #4
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.