| 7 comment.module | comment_load_multiple($cids = array(), $conditions = array(), $reset = FALSE) |
| 8 comment.module | comment_load_multiple($cids = array(), array $conditions = array(), $reset = FALSE) |
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.
$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
8 calls to comment_load_multiple()
File
- modules/
comment/ comment.module, line 1654 - 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);
}
Login or register to post comments