Skip navigation
Help

hook_uc_product_types

7 uc_product.api.php hook_uc_product_types()

Lists node types which should be considered products.

Trusts the duck philosophy of object identification: if it walks like a duck, quacks like a duck, and has feathers like a duck, it's probably a duck. Products are nodes with prices, SKUs, and everything else Ubercart expects them to have.

Return value

Array of node type ids.

Related topics

2 functions implement hook_uc_product_types()

1 invocation of hook_uc_product_types()

File

ubercart/uc_product/uc_product.api.php, line 189
Hooks provided by the Product module.

Code

function hook_uc_product_types() {
  return array('product_kit');
}