You are here

function spam_preprocess_node in Spam 6

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

File

content/spam_content_node.inc, line 215
Include file for integration with the node system.

Code

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