You are here

function commerce_customer_profile_set_properties in Commerce Core 7

Callback for setting customer profile properties.

See also

commerce_customer_entity_property_info()

1 string reference to 'commerce_customer_profile_set_properties'
commerce_customer_entity_property_info in modules/customer/commerce_customer.info.inc
Implements hook_entity_property_info().

File

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

Code

function commerce_customer_profile_set_properties($profile, $name, $value) {
  if ($name == 'user') {
    $profile->uid = $value;
  }
}