function _comment_load

6.x comment.module _comment_load($cid)

Load the entire comment by cid.

Parameters

$cid: The identifying comment id.

Return value

The comment object.

4 calls to _comment_load()
comment_admin_overview_submit in drupal-6.x/modules/comment/comment.admin.inc
Process comment_admin_overview form submissions.
comment_multiple_delete_confirm in drupal-6.x/modules/comment/comment.admin.inc
List the selected comments and verify that the admin really wants to delete them.
comment_multiple_delete_confirm_submit in drupal-6.x/modules/comment/comment.admin.inc
Process comment_multiple_delete_confirm form submissions.
comment_save in drupal-6.x/modules/comment/comment.module
Accepts a submission of new or changed comment content.

File

drupal-6.x/modules/comment/comment.module, line 1105
Enables users to comment on published content.

Code

function _comment_load($cid) {
  return db_fetch_object(db_query('SELECT * FROM {comments} WHERE cid = %d', $cid));
}