function comment_load_multiple

Loads comment entities from the database.

Parameters

array $cids: (optional) An array of entity IDs. If omitted, all entities are loaded.

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

Return value

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

See also

entity_load()

Drupal\Core\Entity\Query\QueryInterface

4 calls to comment_load_multiple()

File

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

Code

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