You are here

function profile2_load_multiple in Profile 2 7

Same name and namespace in other branches
  1. 7.2 profile2.module \profile2_load_multiple()

Load multiple profiles based on certain conditions.

Parameters

$pids: An array of profile IDs.

$conditions: An array of conditions to match against the {profile} table.

$reset: A boolean indicating that the internal cache should be reset.

Return value

An array of profile objects, indexed by pid.

See also

entity_load()

profile2_load()

profile2_load_by_user()

5 calls to profile2_load_multiple()
Profile2CRUDTestCase::setUp in ./profile2.test
Sets up a Drupal site for running functional and integration tests.
Profile2CRUDTestCase::testCRUD in ./profile2.test
Tests CRUD for a profile related to a user and one unrelated to a user.
profile2_load in ./profile2.module
Fetch a profile object.
profile2_load_by_user in ./profile2.module
Fetch profiles by account.
profile2_profile2_type_delete in ./profile2.module
Implements hook_profile2_type_delete()

File

./profile2.module, line 250
Support for configurable user profiles.

Code

function profile2_load_multiple($pids = array(), $conditions = array(), $reset = FALSE) {
  return entity_load('profile2', $pids, $conditions, $reset);
}