commerce_product_set_properties

  1. commerce
    1. 7
Versions
7 commerce_product_set_properties($product, $name, $value)

Callback for setting product properties.

See also

commerce_product_entity_property_info()

Code

modules/product/commerce_product.module, line 703

<?php
function commerce_product_set_properties($product, $name, $value) {
  if ($name == 'creator') {
    $product->uid = $value;
  }
}
?>