commerce_product_type_to_arg

  1. commerce
    1. 7
Versions
7 commerce_product_type_to_arg($type)

Returns a path argument from a product type.

Code

modules/product/commerce_product.module, line 436

<?php
function commerce_product_type_to_arg($type) {
  return strtr($type, '_', '-');
}
?>