From ed4b74024a7da131d38d973ee5688a950adaf6db Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 20 Nov 2010 09:43:43 +0000 Subject: #920600 by bojanz, solotandem: Fixed Document the deprecated parameter in entity_load() --- modules/comment/comment.module | 15 ++++++++++++--- modules/node/node.module | 9 ++++++++- modules/taxonomy/taxonomy.module | 13 ++++++++++--- modules/user/user.module | 11 +++++++++-- 4 files changed, 39 insertions(+), 9 deletions(-) (limited to 'modules') 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); diff --git a/modules/node/node.module b/modules/node/node.module index 154119d6a..22946da2e 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -875,16 +875,23 @@ function node_invoke($node, $hook, $a2 = NULL, $a3 = NULL, $a4 = NULL) { * database access if loaded again during the same page request. * * @see entity_load() + * @see EntityFieldQuery * * @param $nids * An array of node IDs. * @param $conditions - * An array of conditions on the {node} table in the form 'field' => $value. + * (deprecated) An associative array of conditions on the {node} + * 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. * @param $reset * Whether to reset the internal node_load cache. * * @return * An array of node objects indexed by nid. + * + * @todo Remove $conditions in Drupal 8. */ function node_load_multiple($nids = array(), $conditions = array(), $reset = FALSE) { return entity_load('node', $nids, $conditions, $reset); diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index edfa7d42f..e2e99a983 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1064,14 +1064,21 @@ class TaxonomyVocabularyController extends DrupalDefaultEntityController { * database access if loaded again during the same page request. * * @see entity_load() + * @see EntityFieldQuery * * @param $tids - * An array of taxonomy term IDs. + * An array of taxonomy term IDs. * @param $conditions - * An array of conditions to add to the query. + * (deprecated) An associative array of conditions on the {taxonomy_term} + * 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 term objects, indexed by tid. + * An array of term objects, indexed by tid. + * + * @todo Remove $conditions in Drupal 8. */ function taxonomy_term_load_multiple($tids = array(), $conditions = array()) { return entity_load('taxonomy_term', $tids, $conditions); diff --git a/modules/user/user.module b/modules/user/user.module index 8592e0155..7547f3f98 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -235,11 +235,15 @@ function user_external_load($authname) { * @param $uids * An array of user IDs. * @param $conditions - * An array of conditions to match against the {users} table. These - * should be supplied in the form array('field_name' => 'field_value'). + * (deprecated) An associative array of conditions on the {users} + * 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. * @param $reset * A boolean indicating that the internal cache should be reset. Use this if * loading a user object which has been altered during the page request. + * * @return * An array of user objects, indexed by uid. * @@ -247,6 +251,9 @@ function user_external_load($authname) { * @see user_load() * @see user_load_by_mail() * @see user_load_by_name() + * @see EntityFieldQuery + * + * @todo Remove $conditions in Drupal 8. */ function user_load_multiple($uids = array(), $conditions = array(), $reset = FALSE) { return entity_load('user', $uids, $conditions, $reset); -- cgit v1.2.3