hook_product_info()
ecommerce-5--4/docs/developer/hooks/product.php, line 19
Define one or more product types.
This hook is used by product modules. This hook is required to define one or more product types. It is called to determine the names and attributes of a module's product types.
An array of information is returned which defines a module based product. <ul> <li>"name": The human readable name of the product type. Required.</li> <li>"module": This string tells e-Commerce how to map the hook functions to modules.</li> <li>"description": a brief description of the product type. Required</li> </ul>
<?php
function hook_product_info() {
return array(
'product' => array(
'name' => t('Fancy product'),
'module' => 'fancy',
'description' => t('A fantastic product which does neat things.'),
),
);
}
?>