Active
Project:
Abuse
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2010 at 10:29 UTC
Updated:
4 Oct 2011 at 14:49 UTC
We require functionality that notifies site admins that a piece of content has been flagged as abuse.
Comments
Comment #1
Wolfgang62 commentedOr an output as a block that will be seen if a new flag is set.
Comment #2
MAMONT commentedNeed modify abuse_mail
Example
function abuse_mail($key, &$message, $params) {
switch ($key) {
case "warning_email":
$account = $params['account'];
$object = $params['object'];
$vars = array(
'!title' => $object->title,
'!url' => $object->link,
'!name' => $account->name,
'!id' => $object->link,
);
break;
case "moderator_email":
...............................
break;
}
$subject = strtr($params['subject'], $vars);
$body = strtr($params['body'], $vars);
$message['subject'] .= str_replace(array("\r", "\n"), '', $subject);
$message['body'][] = drupal_html_to_text($body);
}
Comment #3
MAMONT commentedFixed in http://drupal.org/node/1127046
Comment #4
jcisio commentedMAMONT: could you please split out that patch to keep only necessary change so that the patch is easier to review (that means don't move function around ;-) ). Thanks.
Comment #5
atodorov commentedsubscribing