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
0f4d2e64
Commit
0f4d2e64
authored
Mar 30, 2006
by
Gerhard Killesreiter
Browse files
#56488
, use named constants for comment status, patch, by Moshe
parent
2347d3f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/blogapi.module
View file @
0f4d2e64
...
...
@@ -638,13 +638,13 @@ function _blogapi_mt_extra(&$node, $struct) {
if
(
array_key_exists
(
'mt_allow_comments'
,
$struct
))
{
switch
(
$struct
[
'mt_allow_comments'
])
{
case
0
:
$node
->
comment
=
0
;
$node
->
comment
=
COMMENT_NODE_DISABLED
;
break
;
case
1
:
$node
->
comment
=
2
;
$node
->
comment
=
COMMENT_NODE_READ_WRITE
;
break
;
case
2
:
$node
->
comment
=
1
;
$node
->
comment
=
COMMENT_NODE_READ_ONLY
;
break
;
}
}
...
...
modules/blogapi/blogapi.module
View file @
0f4d2e64
...
...
@@ -638,13 +638,13 @@ function _blogapi_mt_extra(&$node, $struct) {
if
(
array_key_exists
(
'mt_allow_comments'
,
$struct
))
{
switch
(
$struct
[
'mt_allow_comments'
])
{
case
0
:
$node
->
comment
=
0
;
$node
->
comment
=
COMMENT_NODE_DISABLED
;
break
;
case
1
:
$node
->
comment
=
2
;
$node
->
comment
=
COMMENT_NODE_READ_WRITE
;
break
;
case
2
:
$node
->
comment
=
1
;
$node
->
comment
=
COMMENT_NODE_READ_ONLY
;
break
;
}
}
...
...
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