Drupal: How can I run a custom function every time a user posts a comment?

Posted by umegastar on Stack Overflow See other posts from Stack Overflow or by umegastar
Published on 2010-04-12T08:13:47Z Indexed on 2010/06/01 9:13 UTC
Read the original article Hit count: 218

I'm using Drupal 6 and its core comment module.

I want to run a custom funcion every time a user posts a comment, but I don't want to mess with the comment.module for obvious reasons.

Is there a practical way I can do this in a custom module? If not, what are the alternatives as I don't want to write my own commenting system.

© Stack Overflow or respective owner

Related posts about drupal-6

Related posts about drupal-module