Skip navigation


6 hooks.php hook_uc_product_default_classes()
7 uc_product.api.php hook_uc_product_default_classes()

Define default product classes.

The results of this hook are eventually passed through hook_node_info(), so you may include any keys that hook_node_info() uses. Defaults will be provided where keys are not set. This hook can also be used to override the default "product" product class name and description.

Related topics

2 invocations of hook_uc_product_default_classes()


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


function hook_uc_product_default_classes() {
  return array(
    'my_class' => array(
      'name' => t('My product class'), 
      'description' => t('Content type description for my product class.'),