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.
comment_insert() and comment_update() plus their associated hooks still take arrays. Now they don't.
Patch also removes comment_invoke_comment().
Comment | File | Size | Author |
---|---|---|---|
#15 | php5.3youpickypickything.patch | 665 bytes | catch |
#12 | comment_objects.patch | 15.13 KB | catch |
#11 | comment_objects_no_search.patch | 14.19 KB | catch |
#11 | comment_objects.patch | 15.13 KB | catch |
#7 | comment_objects_0.patch | 14.03 KB | catch |
Comments
Comment #1
catchThis also blocks #504666: Make comments fieldable.
Comment #3
catchDidn't completely remove comment_invoke_comment()
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedLooks like a nice cleanup to me. Much more readable now.
Not introduced by this patch, but why do we need
$comment->comment_format = $comment->format;
? Also, would be nice to teach comment_save() about drupal_write_record().Comment #5
webchickWow, nice clean up! :)
Your indentation's off a bit here:
I would really feel a whole lot better if we had some sort of test coverage for the comment API along with this patch. Maybe adding some to the trigger test?
Comment #6
webchickComment #7
catchsearch_comment_$op has test coverage. Here's the same patch with the search hunks removed, and you can watch it fail, just to demonstrate there's coverage.
Not touching trigger module with a long barge pole under any circumstances.
Comment #11
catchThese should apply to HEAD, fixed indentation as well.
Comment #12
catchNot sure why the other patch didn't get tested, here it is again.
Comment #13
catchI think this is RTBC again.
Comment #14
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks!
Comment #15
catchIntroduced a notice in PHP 5.3 per Berdir.
Comment #16
BerdirI've run the comment tests locally on PHP 5.3 with that change and they pass now.
Comment #17
webchickThanks, committed to HEAD.