3

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

3 Answers 3

2

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

0

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

hook_comment_publish($comment)

The comment is being published by the moderator.

For eg:

function YOURMODULENAME_comment_publish($comment) {
   //your codes to do task
}
0

This way you can achieve with rules

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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