Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
79598dc7
Commit
79598dc7
authored
May 04, 2006
by
drumm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#61678
by Zen, Comment body validation should rely on fapi
parent
7c5c1c9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
modules/comment.module
modules/comment.module
+0
-5
modules/comment/comment.module
modules/comment/comment.module
+0
-5
No files found.
modules/comment.module
View file @
79598dc7
...
...
@@ -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
)
{
...
...
modules/comment/comment.module
View file @
79598dc7
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment