function comment_load

Load the entire comment by cid.

Parameters

$cid: The identifying comment id.

$reset: Whether to reset the internal static entity cache. Note that the static cache is disabled in comment_entity_info() by default.

Return value

The comment object.

22 calls to comment_load()
CommentActionsTestCase::testCommentPublishUnpublishActions in modules/comment/comment.test
Test comment publish and unpublish actions.
CommentActionsTestCase::testCommentPublishUnpublishHooks in modules/comment/comment.test
Test comment publish and unpublish hooks.
CommentActionsTestCase::testCommentUnpublishByKeyword in modules/comment/comment.test
Tests the unpublish comment by keyword action.
CommentContentRebuild::testCommentRebuild in modules/comment/comment.test
Test to ensure that the comment's content array is rebuilt for every call to comment_view().
CommentInterfaceTest::testCommentInterface in modules/comment/comment.test
Test comment interface.

... See full list

File

modules/comment/comment.module, line 1698

Code

function comment_load($cid, $reset = FALSE) {
    $comment = comment_load_multiple(array(
        $cid,
    ), array(), $reset);
    return $comment ? $comment[$cid] : FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.