Skip navigation
Help

comment_load_multiple

7 comment.module comment_load_multiple($cids = array(), $conditions = array())

Load comments from the database.

@todo Remove $conditions in Drupal 8.

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.

Return value

An array of comment objects, indexed by comment ID.

See also

entity_load()

EntityFieldQuery

8 calls to comment_load_multiple()

File

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

Code

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