diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-29 17:01:33 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-29 17:01:33 +0000 |
commit | d8b17c9f19b1e43c629dab48c15284a2adab8a37 (patch) | |
tree | e69ab6d009d5055b81566690b6d3d46fc5420d62 /modules | |
parent | 327e1c2919cac4481975e2702d74c18a6e858389 (diff) | |
download | brdo-d8b17c9f19b1e43c629dab48c15284a2adab8a37.tar.gz brdo-d8b17c9f19b1e43c629dab48c15284a2adab8a37.tar.bz2 |
#156475 by Christoph C. Cemper and greggles: actually call the publish op on hook_comment when a comment is first (automatically) published
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment/comment.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 03f19f371..05f3ef70f 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -813,6 +813,9 @@ function comment_save($edit) { if ($status == COMMENT_NOT_PUBLISHED) { drupal_set_message(t('Your comment has been queued for moderation by site administrators and will be published after approval.')); } + else { + comment_invoke_comment($edit, 'publish'); + } return $edit['cid']; } else { |