All pastes #139263 Raw Edit

Unnamed

public text v1 · immutable
#139263 ·published 2006-08-19 19:59 UTC
rendered paste body
/**
 * Implementation of hook_comment().
 *
 * Append signatures to comments, if the parent node type is signature-enabled.
 */
function user_comment($comment, $op) {
  if ($op == 'view') {
    $node = node_load($comment->nid);
    if (variable_get('user_signatures_'. $node->type, 0)) {
      $comment->comment .= theme('user_signature', $comment->user_signature);
    }
  }
}