user_comment_view

7 user.module user_comment_view($comment)
8 user.module user_comment_view($comment)

Implements hook_comment_view().

File

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

Code

function user_comment_view($comment) {
  if (variable_get('user_signatures', 0) && !empty($comment->signature)) {
    // @todo This alters and replaces the original object value, so a
//   hypothetical process of loading, viewing, and saving will hijack the
//   stored data. Consider renaming to $comment->signature_safe or similar
//   here and elsewhere in Drupal 8.
    $comment->signature = check_markup($comment->signature, $comment->signature_format, '', TRUE);
  }
  else {
    $comment->signature = '';
  }
}
Login or register to post comments