Closed (won't fix)
Project:
Drupal core
Version:
7.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
27 Aug 2015 at 14:42 UTC
Updated:
7 Dec 2022 at 21:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ajitsComment #3
ajitsComment #4
ajitsComment #6
sumitmadan commentedRe-rolled the patch. Please do a review.
Comment #9
sumitmadan commentedComment #10
sumitmadan commentedComment #11
rashid_786 commentedComment line should above the
module_invoke_all('comment_publish', $comment);Comment #12
poker10 commentedPostponing this as of #2554965-27: hook_comment_unpublish is never invoked
Comment #13
poker10 commentedThe #2554965: hook_comment_unpublish is never invoked is committed. I am going to close this as Won't fix, because it seems to be a big change for this D7 phase. The second reason is that there is a comfort "workaround", as the
$commentobject inhook_comment_publish()/hook_comment_unpublishcontains also the original comment ($comment->original). Therefore any modules relying on this functionality are able to check what status transition it was and take appropriate actions only when needed. Because of this I do not see any particular strong reasons doing such change.Let's fix only documentation in #1777166: hook_comment_publish() docs are completely wrong. Thanks!