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.
Hello, elliotttf.
I apologise for bad English. First of all, thanks for your remarkable module! In the course of its use I had a following problem. I have tried to use it with module Rules. I wanted to connect with Event "A comment has been unpublished" the Action. That is I needed to adhere event "generated" by your module to some reaction. However, as I have found out event "unpublished" the module does not generate. I have correctly understood?
It would be desirable, that this event was generated. If it is possible, make, please, such possibility.
Comments
Comment #1
snupy CreditAttribution: snupy commentedelliotttf
Has understood itself. Perhaps, it is useful to you. There are 2 problems:
1. In function comment_publish_publish_form_submit() (a file comment_publish.pages.inc) you update a database. It seems to me, it not absolutely successful decision. It is better to use standard functions API:
comment_unpublish_action()
comment_publish_action()
Which on idea should cause corresponding events (publish and unpublish). However here there is 2nd problem:
2. http://drupal.org/node/900396
Comment #2
elliotttf CreditAttribution: elliotttf commentedI think I understand what you're saying. I've updated the dev branch to invoke the comment API more correctly. Try checking that out from CVS, or apply this patch to the 6.x-1.0 release and let me know if it works:
Comment #3
snupy CreditAttribution: snupy commentedelliotttf
Thanks. All works...
… except 2nd point :). Let's wait, when will correct.