comment_load

Versions
mediamosa-21
comment_load($cid)

Load the entire comment by cid.

Parameters

$cid The identifying comment id.

Return value

The comment object.

▾ 7 functions call comment_load()

comment_admin_overview_submit in modules/comment/comment.admin.inc
Process comment_admin_overview form submissions.
comment_approve in modules/comment/comment.pages.inc
Menu callback; publish specified comment.
comment_confirm_delete_page in modules/comment/comment.admin.inc
Page callback for comment deletions.
comment_multiple_delete_confirm in modules/comment/comment.admin.inc
List the selected comments and verify that the admin wants to delete them.
comment_permalink in modules/comment/comment.module
Redirects comment links to the correct page depending on comment settings.
comment_save in modules/comment/comment.module
Accepts a submission of new or changed comment content.
comment_tokens in modules/comment/comment.tokens.inc
Implements hook_tokens().

Code

modules/comment/comment.module, line 1561

<?php
function comment_load($cid) {
  $comment = comment_load_multiple(array($cid));
  return $comment ? $comment[$cid] : FALSE;
}
?>