_comment_load

  1. drupal
    1. 4.7
    2. 5 comment.module
    3. 6 comment.module
Versions
4.7 – 6 _comment_load($cid)

Load the entire comment by cid.

▾ 4 functions call _comment_load()

comment_admin_overview_submit in modules/comment.module
Execute the chosen 'Update option' on the selected comments, such as publishing, unpublishing or deleting.
comment_multiple_delete_confirm in modules/comment.module
List the selected comments and verify that the admin really wants to delete them.
comment_multiple_delete_confirm_submit in modules/comment.module
Perform the actual comment deletion.
comment_save in modules/comment.module
Accepts a submission of new or changed comment content.

Code

modules/comment.module, line 1104

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