This patch replaces the commerce_bank_transfer_bank_details() function with a theme function that can be more easily overridden.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | commerce_bank_transfer-1998080-1.patch | 2.71 KB | hadsie |
| #1 | commerce_bank_transfer-1998080.patch | 2.56 KB | hadsie |
Comments
Comment #1
hadsie commentedComment #2
hadsie commentedThis patch can be successfully applied after the patch in #1676822: Token support for payment instructions field
Comment #3
ziobudda commentedHi and thanks for the patch, but why do not use an hook_* before theme() function ? In this way not only the template can change Bank transfer data but other modules have the possibility to change data.
Think to a market place where all "seller" can specify them data bank account. If I can work at "module" level I have a better usability (for developer) than the template level.
I think that a line like this
writed at the first line of commerce_bank_transfer_bank_details() function can be the best thing.
And this is the little function for test:
M.