commerce_product_get_properties

  1. commerce
    1. 7
Versions
7 commerce_product_get_properties($product, array $options, $name)

Callback for getting product properties.

See also

commerce_product_entity_property_info()

Code

modules/product/commerce_product.module, line 690

<?php
function commerce_product_get_properties($product, array $options, $name) {
  switch ($name) {
    case 'creator':
      return $product->uid;
    case 'edit_url':
      return url('admin/commerce/products/' . $product->product_id . '/edit', $options);
  }
}
?>