Posted by joachim on October 3, 2012 at 11:00am
3 followers
| Project: | Drupal Commerce |
| Version: | 7.x-1.x-dev |
| Component: | Documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
function hook_commerce_product_type_info() {
// Return the product types defined in the database by the Product UI module.
return db_query('SELECT * FROM {commerce_product_type}')->fetchAllAssoc('type', PDO::FETCH_ASSOC);
}No module is going to want to do that. This should show the actual array you should return.
Comments
#1
#2
Yeah, that example sucked. Committed.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.