summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-08-16 09:32:06 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-08-16 09:32:06 +0000
commitc3207e0ec1cc667fb35fcd52894a3a7bf0efc2d5 (patch)
treea4a730227624d3e5e19fa88e93d5eb7f6ce32413 /modules
parentbc33e002fa8a5016a991a0e32bf3ed4a9cd04895 (diff)
downloadbrdo-c3207e0ec1cc667fb35fcd52894a3a7bf0efc2d5.tar.gz
brdo-c3207e0ec1cc667fb35fcd52894a3a7bf0efc2d5.tar.bz2
#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
Diffstat (limited to 'modules')
-rw-r--r--modules/user/user.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 55e93eb92..aa18d2364 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)) {