Posted by harryspink on October 29, 2010 at 10:29am
6 followers
Jump to:
| Project: | abuse |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
We require functionality that notifies site admins that a piece of content has been flagged as abuse.
Comments
#1
Or an output as a block that will be seen if a new flag is set.
#2
Need 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);
}
#3
Fixed in http://drupal.org/node/1127046
#4
MAMONT: 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.
#5
subscribing