You are here

function user_comment in Drupal 6

Implementation of hook_comment().

File

modules/user/user.module, line 2133
Enables the user registration and login system.

Code

function user_comment(&$comment, $op) {

  // Validate signature.
  if ($op == 'view') {
    if (variable_get('user_signatures', 0) && !empty($comment->signature)) {
      $comment->signature = check_markup($comment->signature, $comment->signature_format, FALSE);
    }
    else {
      $comment->signature = '';
    }
  }
}