I just tried implementing hook_receipt_filter, and discovered that it's rather useless as it simply get 2 NULL arguments.

Attached patch makes ec_receipt_checkout_init pass the transaction object, and fixes _ec_receipt_filter to pass it to the hook implementation, as it seems to be intended.

Comments

gordon’s picture

submit for testing

Status: Needs review » Needs work

The last submitted patch, receipt_filter.patch, failed testing.

gordon’s picture

Version: 6.x-4.0-rc15 » 6.x-4.x-dev
Status: Needs work » Needs review

move to the dev branch for testing.

gordon’s picture

receipt_filter.patch queued for re-testing.

gordon’s picture

Update to 6.x-4.x-dev

gordon’s picture

Status: Needs review » Fixed

Thanks, I have committed.

Status: Fixed » Closed (fixed)

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