Commit 79598dc7 authored by drumm's avatar drumm

#61678 by Zen, Comment body validation should rely on fapi

parent 7c5c1c9a
......@@ -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) {
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment