function commerce_customer_profile_get_properties in Commerce Core 7
Callback for getting customer profile properties.
See also
commerce_customer_entity_property_info()
1 string reference to 'commerce_customer_profile_get_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 1374 - Defines the customer profile entity and API functions to manage customers and interact with them.
Code
function commerce_customer_profile_get_properties($profile, array $options, $name) {
switch ($name) {
case 'user':
return $profile->uid;
}
}