From c3207e0ec1cc667fb35fcd52894a3a7bf0efc2d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 16 Aug 2007 09:32:06 +0000 Subject: [PATCH] #162050 by dvessel: user_comment() now modifies the comment, although hook_comment() was not intended to modify the comment, so we need to pass it in by reference to get modified --- modules/user/user.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/user/user.module b/modules/user/user.module index 55e93eb9243..aa18d2364a9 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -3180,9 +3180,9 @@ function user_forms() { } /** - * Implementation of hook_comments(). + * Implementation of hook_comment(). */ -function user_comment($comment, $op) { +function user_comment(&$comment, $op) { // Validate signature. if ($op == 'view') { if (variable_get('user_signatures', 0) && !empty($comment->signature)) {