You are here

function spam_load_comment in Spam 5

comment support functions *

6 calls to spam_load_comment()
spam_delete_comment in ./spam.module
Delete the comment and all replies
spam_notspam_comment in ./spam.module
Mark the comment as not spam. This may cause the comment to become published depending on settings
spam_page in ./spam.module
Drupal _page hook. Provides various spam actions based on the URL that is currently being accessed.
spam_publish_comment in ./spam.module
Publish a comment.
spam_spam_comment in ./spam.module
Mark the comment as spam. This may cause the comment to become unpublished depending on settings

... See full list

File

./spam.module, line 2928

Code

function spam_load_comment($cid) {
  $comment = db_fetch_object(db_query('SELECT cid,nid,subject,comment,uid FROM {comments} WHERE cid = %d', $cid));
  if ($comment && $comment->cid != 0) {
    return $comment;
  }
  else {
    return NULL;
  }
}