You are here

function commerce_customer_profile_load_multiple in Commerce Core 7

Loads multiple customer profiles by ID or based on a set of conditions.

Parameters

$profile_ids: An array of customer profile IDs.

$conditions: An array of conditions on the {commerce_customer_profile} table in the form 'field' => $value.

$reset: Whether to reset the internal customer profile loading cache.

Return value

An array of customer profile objects indexed by profile_id.

See also

entity_load()

9 calls to commerce_customer_profile_load_multiple()
CommerceCustomerUITest::testCommerceCustomerDeleteProfilesWithOrderReference in modules/customer/tests/commerce_customer_ui.test
Delete multiple profiles with and without orders attached.
CommerceCustomerUITest::testCommerceCustomerUIDeleteCustomerProfile in modules/customer/tests/commerce_customer_ui.test
Delete a customer profile.
CommerceCustomerUITest::testCommerceCustomerUIDeleteProfileViaOrderUI in modules/customer/tests/commerce_customer_ui.test
Delete a customer profile through the order UI.
CommerceCustomerUITest::testCommerceCustomerUIDisableCustomerProfile in modules/customer/tests/commerce_customer_ui.test
Disable a customer profile. @TODO: Probably this test should be completed when it is possible to select older profiles for the orders.
CommerceCustomerUITest::testCommerceCustomerUIEditCustomerProfile in modules/customer/tests/commerce_customer_ui.test
Edit a previously existing customer profile.

... See full list

File

modules/customer/commerce_customer.module, line 628
Defines the customer profile entity and API functions to manage customers and interact with them.

Code

function commerce_customer_profile_load_multiple($profile_ids = array(), $conditions = array(), $reset = FALSE) {
  return entity_load('commerce_customer_profile', $profile_ids, $conditions, $reset);
}