You are here

function commerce_product_type_to_arg in Commerce Core 7

Returns a path argument from a product type.

File

modules/product/commerce_product.module, line 469
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_type_to_arg($type) {
  return strtr($type, '_', '-');
}