Created
June 11, 2012 15:30
-
-
Save arturo-c/2910662 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/commerce_adhoc_payment.module b/commerce_adhoc_payment.module | |
old mode 100644 | |
new mode 100755 | |
index f28cca7..f8e590d | |
--- a/commerce_adhoc_payment.module | |
+++ b/commerce_adhoc_payment.module | |
@@ -24,7 +24,7 @@ function commerce_adhoc_payment_commerce_payment_method_info() { | |
* Payment method callback: checkout form. | |
*/ | |
function commerce_adhoc_payment_submit_form($payment_method, $pane_values, $checkout_pane, $order) { | |
- return array( | |
+ $method = array( | |
'method' => array( | |
'#type' => 'select', | |
'#title' => t('Payment method'), | |
@@ -60,6 +60,9 @@ function commerce_adhoc_payment_submit_form($payment_method, $pane_values, $chec | |
'#required' => TRUE, | |
), | |
); | |
+ | |
+ drupal_alter('commerce_adhoc_payment_method', $method); | |
+ return $method; | |
} | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment