You are here

function signature_forum_comment in Signatures for Forums 5.2

Same name and namespace in other branches
  1. 5 signature_forum.module \signature_forum_comment()
  2. 6 signature_forum.module \signature_forum_comment()

Implementation of hook_comment().

File

./signature_forum.module, line 342
Tweaks signatures in ways inspired by other traditional forum software:

Code

function signature_forum_comment(&$comment, $op) {
  if ($op == 'view') {
    $settings = variable_get('signature_forum_settings', signature_forum_defaults());
    if ($settings['signature_forum_auto_insert']) {
      $comment->comment .= signature_forum_get_signature($comment);
    }
  }
}