Generate email when a node is flagged
reikiman - July 7, 2007 - 03:56
| Project: | abuse |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | jaydub |
| Status: | active |
Jump to:
Description
My moderator staff wants to be notified by email when a node is flagged as abusive. This is so they don't have to regularly check the abuse area ...
I dug into the code and see the only time drupal_mail is called is when the WARN button in the abuse area is clicked.

#1
So, it looks like the appropriate place for a warning upon abuse being reported is in abuse_report_form_submit ... Am I on the right track?
#2
There's enough drupal_goto's in this function it just reminds me of that old computer science paper: Goto Considered Harmful
Um, is the right place just before this line:
drupal_set_message(t('Thank you for your report.'));??
#3
#4
let's work this into the next version
#5
#6
Been a long time, any update on this?
#7
Subscribe
#8
Subscribe