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/user/user.module | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'modules/user/user.module') 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