The reason for that is to change the title of a payment method. I'm sorry if it's there and did not find it. I know I can use string override but I don't want to install yet another module for such a simple issue.
function uc_payment_pack_payment_method() {
$methods[] = array(
'id' => 'check',
'name' => t('Check'),
'title' => t('Check or money order'), <-- change that
'desc' => t('Pay by mailing a check or money order.'),
'callback' => 'uc_payment_method_check',
'weight' => 1,
'checkout' => TRUE,
'no_gateway' => TRUE,
);...
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | add_hook_payment_method_alter-1366066.patch | 1.31 KB | hles |
Comments
Comment #1
hles commentedOh wow, i quoted instead of "coding", this issue will be a complete fail if furthermore the answer is "yes there is a hook for that" =)
Comment #2
longwaveNo, there isn't one - hook_payment_gateway_alter() exists, but not hook_payment_method_alter(). It should be a one line patch (plus documentation) to get it added, though.
Comment #3
hles commentedI think I can try to make that patch.
Comment #4
hles commentedPatch attached with doc
Comment #6
longwaveComment #7
longwave#4: add_hook_payment_method_alter-1366066.patch queued for re-testing.
Comment #8
longwaveCommitted to 6.x, ported and committed to 7.x.