comment_load_multiple

Versions
mediamosa-21
comment_load_multiple($cids = array(), $conditions = array())

Load comments from the database.

Parameters

$cids An array of comment IDs.

$conditions An array of conditions to match against the {comments} table. These should be supplied in the form array('field_name' => 'field_value').

Return value

An array of comment objects, indexed by comment ID.

▾ 6 functions call comment_load_multiple()

comment_admin_overview in modules/comment/comment.admin.inc
Form builder; Builds the comment overview form for the admin.
comment_delete_multiple in modules/comment/comment.module
Delete comments and all their replies.
comment_load in modules/comment/comment.module
Load the entire comment by cid.
comment_node_page_additions in modules/comment/comment.module
Build the comment-related elements for node detail pages.
comment_node_update_index in modules/comment/comment.module
Implements hook_node_update_index().
comment_preview in modules/comment/comment.module
Generate a comment preview.

Code

modules/comment/comment.module, line 1549

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