summaryrefslogtreecommitdiff
path: root/modules/blogapi/blogapi.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/blogapi/blogapi.module')
-rw-r--r--modules/blogapi/blogapi.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index 71c6cac05..534a30f1b 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -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;
}
}