Hooks that need documentation written and copied into .api files:

Product:
- hook_commerce_product_type_info
- hook_commerce_product_type_info_alter

Missing alter hooks:

- hook_commerce_payment_transaction_status_info_alter

Also, documentation for a few components is missing from http://www.drupalcommerce.org/specification/info-hooks

Comments

rszrama’s picture

Title: Missing documentation and missing hooks » Add missing documentation for Product hooks
Category: support » task
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

xaffimarc’s picture

Issue summary: View changes

I personally dont think that this is adequate documentation, is there any way this could be improved please?

/**
 * Allows modules to alter the product types defined by other modules.
 *
 * @param $product_types
 *   The array of product types defined by enabled modules.
 *
 * @see hook_commerce_product_type_info()
 */
function hook_commerce_product_type_info_alter(&$product_types) {
  // No example.
}