How can add new rule to trigger when a comment approve, in Drupal 7?


Currently there is no rules condition to do this but there is a patch in the rules issue queue. You can try using that, and if you do you can report back to that issue and help it get committed to the rules module. http://drupal.org/node/1421058#comment-6532372

| improve this answer | |

An alternate way, You can use the hook hook_comment_publish in your custom module.


The comment is being published by the moderator.

For eg:

function YOURMODULENAME_comment_publish($comment) {
   //your codes to do task
| improve this answer | |

This way you can achieve with rules

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.