function commerce_product_set_properties in Commerce Core 7
Callback for setting product properties.
See also
commerce_product_entity_property_info()
1 string reference to 'commerce_product_set_properties'
- commerce_product_entity_property_info in modules/
product/ commerce_product.info.inc - Implements hook_entity_property_info().
File
- modules/
product/ commerce_product.module, line 728 - Defines the core Commerce product entity, including the entity itself, the bundle definitions (product types), and various API functions to manage products and interact with them through forms and autocompletes.
Code
function commerce_product_set_properties($product, $name, $value) {
if ($name == 'creator') {
$product->uid = $value;
}
}