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

Comments

rszrama’s picture

Category: bug » task
Status: Needs review » Closed (fixed)

Cool, 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.