1 user.module user_comment_view($comment)

Implements hook_comment_view().

File

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

Code

function user_comment_view($comment) {
  if (config_get('system.core', 'user_signatures') && !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 Backdrop.
    $comment->signature = check_markup($comment->signature, $comment->signature_format, '', TRUE);
  }
  else {
    $comment->signature = '';
  }
}