I would like to write a hook to send a reject E-mail whenever a comment is deleted. However, hook_comment only recognize "insert", "moderate" and "update" operations. Please consider adding a "delete" action as well.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | core.patch.txt | 846 bytes | naudefj |
Comments
Comment #1
killes@www.drop.org commentedfeatures go into CVS.
I think it might be possible to fire such an action on the submit of the form through form API.
Comment #2
naudefj commentedLooks like hook_comment delete is already implemented in code. However, it is not listed in the API documentation.
What steps should I follow to get the API (http://api.drupal.org/) updated.
Comment #3
webchickIf you have CVS access, you can simply update the appropriate documentation file in /contributions/docs/developer/hooks, and then commit it.
You might want to check if there are other missing ops too, while you're at it.
Comment #4
naudefj commentedThank you very much webchick!
I do have CVS access. However, I need someone to just check the patch before I commit it.
Comment #5
brunodboComment #6
brunodboChanged the component to reflect the new component categorization. See http://drupal.org/node/301443.
Comment #7
catchPatch looks fine to me, please go ahead and commit it if it still applies. Marking as fixed so it doesn't end up in the core rtbc queue.
Comment #8
catchwebchick wants this left at rtbc.
Comment #9
webchickLooks like this has already been corrected by someone. I checked DRUPAL-5, DRUPAL-6--1, and DRUPAL-7 already has this documented as a separate hook (hook_comment_delete()).
Marking fixed.