diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-05-04 09:34:56 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-05-04 09:34:56 +0000 |
commit | 79598dc72334e5fef8146dca1553b16bb289a1b8 (patch) | |
tree | 6913b0c1093d48c9946dae1e33d07d0e2671fda9 | |
parent | 7c5c1c9ab9388c129579885f3e94476d654f5679 (diff) | |
download | brdo-79598dc72334e5fef8146dca1553b16bb289a1b8.tar.gz brdo-79598dc72334e5fef8146dca1553b16bb289a1b8.tar.bz2 |
#61678 by Zen, Comment body validation should rely on fapi
-rw-r--r-- | modules/comment.module | 5 | ||||
-rw-r--r-- | modules/comment/comment.module | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/modules/comment.module b/modules/comment.module index 83fae38b7..a0622e134 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 83fae38b7..a0622e134 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) { |