You are here

function spam_link in Spam 5

Same name and namespace in other branches
  1. 5.3 spam.module \spam_link()
  2. 6 spam.module \spam_link()

Drupal _link hook. Adds themable spam related links to content if enabled.

Parameters

$type Type of content (comment, node, ...):

$node Affected node.:

Return value

An array.

File

./spam.module, line 630

Code

function spam_link($type, $node = 0, $main = 0) {
  if ($type == 'comment') {

    // allow comment spam links to be themed
    return theme('spam_link', $node, 'comment');
  }
  if ($type == 'node') {
    return theme('spam_link', $node, 'node');
  }
}