function hook_uc_product_types in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_product/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 Array of node type ids.
1 function implements hook_uc_product_types()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- uc_product_uc_product_types in uc_product/
uc_product.module - Implements hook_uc_product_types().
1 invocation of hook_uc_product_types()
- uc_product_types in uc_product/
uc_product.module - Returns an array of product node types.
File
- uc_product/
uc_product.api.php, line 151 - Hooks provided by the Product module.
Code
function hook_uc_product_types() {
return [
'product_kit',
];
}