Skip to content

Instantly share code, notes, and snippets.

@arturo-c
Created June 11, 2012 15:30
Show Gist options
  • Save arturo-c/2910662 to your computer and use it in GitHub Desktop.
Save arturo-c/2910662 to your computer and use it in GitHub Desktop.
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