function hook_product_types in Ubercart 5
Same name and namespace in other branches
- 6.2 docs/hooks.php \hook_product_types()
List 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 Übercart expects them to have.
Return value
Array of node type ids.
2 functions implement hook_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_kit_product_types in uc_product_kit/
uc_product_kit.module - uc_product_product_types in uc_product/
uc_product.module
39 invocations of hook_product_types()
- theme_uc_catalog_browse in uc_catalog/
uc_catalog.module - Display a formatted catalog page.
- uc_attribute_menu in uc_attribute/
uc_attribute.module - Implementation of hook_menu().
- uc_attribute_nodeapi in uc_attribute/
uc_attribute.module - Implementation of hook_nodeapi().
- uc_cart_add_item in uc_cart/
uc_cart.module - Adds an item to a user's cart.
- uc_cart_condition_product_class_form in uc_cart/
uc_cart_workflow.inc
File
- docs/
hooks.php, line 824 - These are the hooks that are invoked by the Übercart core.
Code
function hook_product_types() {
return array(
'product_kit',
);
}