function commerce_customer_profile_load in Commerce Core 7
Loads a customer profile by ID.
6 calls to commerce_customer_profile_load()
- CommerceCustomerUITest::testCommerceCustomerUIAddProfileViaOrderUI in modules/
customer/ tests/ commerce_customer_ui.test - Add a customer profile using the Order interface.
- CommerceCustomerUITest::testCommerceCustomerUIProfileWithExtraFields in modules/
customer/ tests/ commerce_customer_ui.test - Add extra fields to a profile type.
- commerce_customer_field_formatter_view in modules/
customer/ commerce_customer.module - Implements hook_field_formatter_view().
- commerce_customer_profile_copy_validate in modules/
customer/ commerce_customer.module - Element validate callback: Pertaining to the "copy profile" checkbox.
- commerce_customer_profile_pane_checkout_form in modules/
customer/ includes/ commerce_customer.checkout_pane.inc - Checkout pane callback: returns a customer profile edit form.
1 string reference to 'commerce_customer_profile_load'
- commerce_customer_entity_info in modules/
customer/ commerce_customer.module - Implements hook_entity_info().
File
- modules/
customer/ commerce_customer.module, line 607 - Defines the customer profile entity and API functions to manage customers and interact with them.
Code
function commerce_customer_profile_load($profile_id) {
$profiles = commerce_customer_profile_load_multiple(array(
$profile_id,
), array());
return $profiles ? reset($profiles) : FALSE;
}