diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-30 14:24:52 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-30 14:24:52 +0000 |
commit | 0f4d2e64c24ee69f824c300f5ce6207b7620a2a5 (patch) | |
tree | dea400dbba4c7946b0a40de20fe0a6820b47bf24 /modules/blogapi | |
parent | 2347d3f93c19b7627589ff1859916ead450cb25c (diff) | |
download | brdo-0f4d2e64c24ee69f824c300f5ce6207b7620a2a5.tar.gz brdo-0f4d2e64c24ee69f824c300f5ce6207b7620a2a5.tar.bz2 |
#56488, use named constants for comment status, patch, by Moshe
Diffstat (limited to 'modules/blogapi')
-rw-r--r-- | modules/blogapi/blogapi.module | 6 |
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; } } |