You are here

function _cloudflare_publish_comment in CloudFlare 6

Same name and namespace in other branches
  1. 7 cloudflare.module \_cloudflare_publish_comment()

Publish comment.

1 call to _cloudflare_publish_comment()
_cloudflare_whitelist_comment in ./cloudflare.module

File

./cloudflare.module, line 490

Code

function _cloudflare_publish_comment($cid) {
  db_query("UPDATE {comments} SET status = %d WHERE cid = %d", "0", $cid);
  watchdog('action', t("Comment #%id has been published.", array(
    '%id' => $cid,
  )));
}