You are here

function spam_preprocess_comment in Spam 6

Preprocess function to add some class for comments marked as spam.

File

content/spam_content_comment.inc, line 399
Include file for integration with comments.

Code

function spam_preprocess_comment(&$vars) {
  $comment = $vars['comment'];
  if ($comment->is_spam) {
    $vars['title'] = '<div class="comment-spam-title">' . $vars['title'] . '</div>';
    $vars['content'] = '<div class="comment-spam-body">' . $vars['content'] . '</div>';
  }
}