function comment_load

comment_load($cid, $reset = FALSE)

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.

File

modules/comment/comment.module, line 1687
Enables users to comment on published content.

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!comment!comment.module/function/comment_load/7.x