Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2013 at 18:51 UTC
Updated:
8 Oct 2013 at 21:38 UTC
This is almost nothing, sorry for the noise. The doc refers to commerce_order_updated hook. I got some time trying to find an non-existent hook until I realized it was just hook_{commerce_entity}_update().
OTOH I think an example for the technique suggested in the docs for commerce_order_status_update() may be of interest for a better developer experience. Not sure if it fits commerce_order.api.php or commerce_examples is a better place. This is what I come up with, based on my own usecase: https://gist.github.com/jonhattan/6889423
| Comment | File | Size | Author |
|---|---|---|---|
| commerce-order_status_update-doc-fix.patch | 775 bytes | jonhattan |
Comments
Comment #1
rszrama commentedCool, I've switched this to a task and committed the fix. I'm happy to add .api.php documentation for the magic hooks if you want to roll a patch for them, though we could also just have combined hook_commerce_ENTITY_TYPE_*() documentation - one doc block per hook type in commerce.api.php.