In order to have a more well defined Ubercart specific API, let's wrap the module_invoke_all() necessary to get an array of product types in our own API function. This will allow us to change the way those product types are defined in the future while preserving the output of this function for developers.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | uc_product_types_cleanup.patch | 29.74 KB | rszrama |
Comments
Comment #1
rszrama commentedAfter doing this, commit an updated version of the patch in #341819: Allow contrib modules to utilize uc_product_add_to_cart_form.
Comment #2
rszrama commentedCommitting this mondo-patch that does the following:
module_invoke_all('product_types').