summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-20 09:43:43 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-20 09:43:43 +0000
commited4b74024a7da131d38d973ee5688a950adaf6db (patch)
tree50e676f48ef4a9a24ef8699a361fb2598568b4a7 /modules/comment/comment.module
parentd54e67002b84b09b5df4c5af5775054d5dedf3aa (diff)
downloadbrdo-ed4b74024a7da131d38d973ee5688a950adaf6db.tar.gz
brdo-ed4b74024a7da131d38d973ee5688a950adaf6db.tar.bz2
#920600 by bojanz, solotandem: Fixed Document the deprecated parameter in entity_load()
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module15
1 files changed, 12 insertions, 3 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 2e9b86ade..f5d9f0f5e 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1623,10 +1623,19 @@ function comment_delete_multiple($cids) {
* @param $cids
* An array of comment IDs.
* @param $conditions
- * An array of conditions to match against the {comments} table. These
- * should be supplied in the form array('field_name' => 'field_value').
+ * (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
- * An array of comment objects, indexed by comment ID.
+ * An array of comment objects, indexed by comment ID.
+ *
+ * @see entity_load()
+ * @see EntityFieldQuery
+ *
+ * @todo Remove $conditions in Drupal 8.
*/
function comment_load_multiple($cids = array(), $conditions = array()) {
return entity_load('comment', $cids, $conditions);