Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
comment.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 May 2013 at 21:48 UTC
Updated:
29 Jul 2014 at 22:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
berdirFixing title, too much copy & paste
Comment #2
annikaC commentedMade a start on this, attached patch!
What's happening to the hooks for comment_save and comment_delete?
Comment #3
annikaC commentedComment #4
berdirThe hooks stay, you only need to touch them as far as they mention comment_save()/comment_delete().
Comment #5
berdirMake sure to also remove the actual functions in comment.module.
In the corresponding issue for node_save(), we agreed that it's fine to replace comment_save() with $comment->save() in the documentation.
Comment #6
jeroentReplaced comment_save/comment_delete/comment_delete_multiple($ids) with $comment->save()/$comment->delete()/entity_delete_multiple('comment', $ids). Removed this functions and updated comments.
Comment #8
ddrozdik commentedWill be done today during Code Sprint UA.
Comment #9
ddrozdik commentedPatch attached.
Comment #10
ddrozdik commentedComment #11
ddrozdik commentedComment #12
podaroksimple patch, looks like all documentation updated
If bot happy - i`m happy too
RTBC after green bot
Comment #14
ddrozdik commentedfixed.
Comment #15
tstoecklerGood thing we have a bot, I missed that one.
Should be $this->comment->save();
Comment #16
ddrozdik commentedyeah, but I have changed this line in the #14 patch.
Comment #17
tstoecklerOops, that was a crosspost. Patch looks good.
Comment #18
andypost+1 rtbc, nice clean-up for #731724: Convert comment settings into a field to make them work with CMI and non-node entities
Comment #19
catch#14: comment-remove_comment_save_delete-1999328-14.patch queued for re-testing.
Comment #21
ddrozdik commentedreroll.
Comment #23
andypostProper merge, actions now plugins
Comment #24
catchCommitted/pushed to 8.x thanks!
I missed that this was still testing when committing, if 8.x comes back green that's OK but otherwise will need to revert...