Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
50ac9d3b
Commit
50ac9d3b
authored
Sep 27, 2005
by
Dries
Browse files
- Patch
#32103
by nedjo: fixed title validation.
parent
cba3391b
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
50ac9d3b
...
...
@@ -1319,8 +1319,10 @@ function node_validate($node) {
*/
function
node_validate_title
(
$node
,
$message
=
NULL
)
{
// Validate the title field.
if
(
trim
(
$node
->
title
)
==
''
)
{
form_set_error
(
'title'
,
isset
(
$message
)
?
$message
:
t
(
'You have to specify a title.'
));
if
(
isset
(
$node
->
title
))
{
if
(
trim
(
$node
->
title
)
==
''
)
{
form_set_error
(
'title'
,
isset
(
$message
)
?
$message
:
t
(
'You have to specify a title.'
));
}
}
}
...
...
modules/node/node.module
View file @
50ac9d3b
...
...
@@ -1319,8 +1319,10 @@ function node_validate($node) {
*/
function
node_validate_title
(
$node
,
$message
=
NULL
)
{
// Validate the title field.
if
(
trim
(
$node
->
title
)
==
''
)
{
form_set_error
(
'title'
,
isset
(
$message
)
?
$message
:
t
(
'You have to specify a title.'
));
if
(
isset
(
$node
->
title
))
{
if
(
trim
(
$node
->
title
)
==
''
)
{
form_set_error
(
'title'
,
isset
(
$message
)
?
$message
:
t
(
'You have to specify a title.'
));
}
}
}
...
...
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