I suspect this is not a change that can be made to D7 (so change to D8 if necessary) but the comment_(un)publish_action() functions do not currently invoke hook_comment(op = (un)publish). Not cool...

The patch attached solves this.

CommentFileSizeAuthor
comment_invoke.patch922 bytesbleen

Comments

Status: Needs review » Needs work

The last submitted patch, comment_invoke.patch, failed testing.

dixon_’s picture

Version: 7.x-dev » 8.x-dev
jhodgdon’s picture

Issue summary: View changes
Status: Needs work » Closed (duplicate)

This is obsolete for Drupal 8, and won't fix for Drupal 7.

See also #2294375: Comment publish/unpublish hooks are not invoked correctly