1 comment.module comment_load_multiple($cids = array(), $conditions = array(), $reset = FALSE)

Loads comments from the database.

Parameters

$cids: An array of comment IDs.

$conditions: (deprecated) An associative array of conditions on the {comments} table, where the keys are the database fields and the values are the values those fields must have. Instead, it is preferable to use EntityFieldQuery to retrieve a list of entity IDs loadable by this function.

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

Return value

An array of comment objects, indexed by comment ID.:

See also

entity_load()

EntityFieldQuery

File

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

Code

function comment_load_multiple($cids = array(), $conditions = array(), $reset = FALSE) {
  return entity_load('comment', $cids, $conditions, $reset);
}