In some cases it's useful to know if a line item presave handles an insertion or an update since some modifications have only to happen on one of these occasions.
Attached patches provide an ability to do so. I prefer the solution with the $op parameter since there's less overhead (technical and documentation), while provide same functionality.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rszrama’s picture

Status: Needs review » Fixed

Committed a slightly altered version of the two separate hooks patch:

https://github.com/rszrama/drupalcommerce/commit/1cc1d06a83cc6548cf021a9...

Status: Fixed » Closed (fixed)

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