Chris@0: /** Chris@0: * Implements hook_comment_presave(). Chris@0: */ Chris@0: function {{ machine_name }}_comment_presave($comment) { Chris@0: // Remove leading & trailing spaces from the comment subject. Chris@0: $comment->subject = trim($comment->subject); Chris@0: }