function comment_load

Loads the entire comment by comment ID.

Parameters

int $cid: The ID of the comment to be loaded.

bool $reset: (optional) Whether to reset the internal static entity cache.

Return value

The comment object.

14 calls to comment_load()
CommentActionsTest::testCommentUnpublishByKeyword in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentActionsTest.php
Tests the unpublish comment by keyword action.
CommentInterfaceTest::testCommentInterface in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php
Tests the comment interface.
CommentLanguageTest::testCommentLanguage in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentLanguageTest.php
Test that comment language is properly set.
CommentNodeChangesTest::testNodeDeletion in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentNodeChangesTest.php
Tests that comments are deleted with the node.
CommentPreviewTest::testCommentEditPreviewSave in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentPreviewTest.php
Tests comment edit, preview, and save.

... See full list

File

drupal/core/modules/comment/comment.module, line 1343
Enables users to comment on published content.

Code

function comment_load($cid, $reset = FALSE) {
  return entity_load('comment', $cid, $reset);
}