theme_abuse_report($object, $count)
abuse/abuse.module, line 888
<?php
function theme_abuse_report($object, $count) {
$account = user_load(array('uid' => $object->uid));
$offences = number_format(_abuse_get_offence_count($object->uid));
$warnings = number_format(_abuse_get_warning_count($object->uid));
$node_type = $object->type;
$output = "<li>\n";
$output .= '<strong>'. $object->link .'</strong> | <span class="type">'. $node_type .'</span>';
$output .= "<h5>". t('by: !name', array('!name' => theme('username', $account))) ."</h5>\n";
$output .= "<h6>". t('[!offence offences | !warning warnings]', array('!offence' => $offences, '!warning' => $warnings)) ."</h6>\n";
$output .= $object->content;
$output .= "<dl class=\"flags\">\n";
foreach ($object->reports as $report) {
$output .= "<dt>". theme('username', $report) .' '. format_date($report->created) ."</dt>\n";
$output .= "<dt>". $report->report_reason ."</dd>\n";
$output .= "<dd>". check_plain($report->body) ."</dd>\n";
}
$output .= "</dl>\n";
$output .= "<div class=\"buttons\">\n";
$output .= drupal_get_form('abuse_operations_form'. $count, $object);
$output .= '</div>';
$output .= '</li>';
return $output;
}
?>