Event-hook backend_sendcomment

Discussion corner for Developers of Serendipity.
Post Reply
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Event-hook backend_sendcomment

Post by onli »

I need an eventhook to alter the email-notification send when adding a comment. The attached patch works for me. Can we integrate this?

PS: Wasn't sure about a fitting name for the hook.
Attachments
functions_comments.inc.php.diff.txt
(2.5 KiB) Downloaded 426 times
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Event-hook backend_sendcomment

Post by garvinhicking »

Hi!

Great idea, and no problem. I've committed this to the 1.6 SVN trunk,

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Event-hook backend_sendcomment

Post by onli »

Thanks!
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Event-hook backend_sendcomment

Post by Don Chambers »

onli wrote:I need an eventhook to alter the email-notification send when adding a comment.
Curiosity - how do you intend to use it?
=Don=
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Event-hook backend_sendcomment

Post by onli »

You remember the bayes-plugin? With the hook I add links to delete the comment and learn it as spam in one step (or do the same with approve and ham).
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Event-hook backend_sendcomment

Post by Don Chambers »

onli wrote:You remember the bayes-plugin? With the hook I add links to delete the comment and learn it as spam in one step (or do the same with approve and ham).
Very cool!
=Don=
onli
Regular
Posts: 2825
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Event-hook backend_sendcomment

Post by onli »

It was Dirk's idea ;)
Post Reply