function uc_credit_order_view_form in Ubercart 7.3
Same name and namespace in other branches
- 5 payment/uc_credit/uc_credit.module \uc_credit_order_view_form()
- 6.2 payment/uc_credit/uc_credit.module \uc_credit_order_view_form()
Builds the "Process Card" button on the order view.
See also
uc_credit_order_view_form_submit()
1 string reference to 'uc_credit_order_view_form'
- uc_payment_method_credit in payment/
uc_credit/ uc_credit.module - Callback function for the Credit Card payment method.
File
- payment/
uc_credit/ uc_credit.module, line 700 - Defines the credit card payment method and hooks in payment gateways.
Code
function uc_credit_order_view_form($form, &$form_state, $order_id) {
$form['order_id'] = array(
'#type' => 'hidden',
'#value' => $order_id,
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Process card'),
);
return $form;
}