comment_load_multiple

Versions
7
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.

▾ 4 functions call comment_load_multiple()

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_preview in modules/comment/comment.module
Generate a comment preview.

Code

modules/comment/comment.module, line 1494

<?php
function comment_load_multiple($cids = array(), $conditions = array()) {
  return entity_load('comment', $cids, $conditions);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.