Download & Extend

Admin email notification

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

#4

Assigned to:harryspink» Anonymous

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

nobody click here