#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

6.x
Gábor Hojtsy 2007-08-16 09:32:06 +00:00
parent bc33e002fa
commit c3207e0ec1
1 changed files with 2 additions and 2 deletions

View File

@ -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)) {