function comment_load_multiple

comment_load_multiple($cids = 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

entity_load()

EntityFieldQuery

File

modules/comment/comment.module, line 1671
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);
}

© 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_multiple/7.x