From 79598dc72334e5fef8146dca1553b16bb289a1b8 Mon Sep 17 00:00:00 2001 From: Neil Drumm <drumm@3064.no-reply.drupal.org> Date: Thu, 4 May 2006 09:34:56 +0000 Subject: [PATCH] #61678 by Zen, Comment body validation should rely on fapi --- modules/comment.module | 5 ----- modules/comment/comment.module | 5 ----- 2 files changed, 10 deletions(-) diff --git a/modules/comment.module b/modules/comment.module index 83fae38b7b28..a0622e1340b9 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -1161,11 +1161,6 @@ function comment_validate($edit) { form_set_error('author', t('You have to specify a valid author.')); } - // Validate the comment's body. - if (trim($edit['comment']) == '') { - form_set_error('comment', t('The body of your comment is empty.')); - } - // Check validity of name, mail and homepage (if given) if (!$user->uid || isset($edit['is_anonymous'])) { if (variable_get('comment_anonymous', COMMENT_ANONYMOUS_MAYNOT_CONTACT) > COMMENT_ANONYMOUS_MAYNOT_CONTACT) { diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 83fae38b7b28..a0622e1340b9 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1161,11 +1161,6 @@ function comment_validate($edit) { form_set_error('author', t('You have to specify a valid author.')); } - // Validate the comment's body. - if (trim($edit['comment']) == '') { - form_set_error('comment', t('The body of your comment is empty.')); - } - // Check validity of name, mail and homepage (if given) if (!$user->uid || isset($edit['is_anonymous'])) { if (variable_get('comment_anonymous', COMMENT_ANONYMOUS_MAYNOT_CONTACT) > COMMENT_ANONYMOUS_MAYNOT_CONTACT) { -- GitLab