function uc_paypal_ec_form in Ubercart 7.3
Same name and namespace in other branches
- 5 payment/uc_paypal/uc_paypal.module \uc_paypal_ec_form()
- 6.2 payment/uc_paypal/uc_paypal.module \uc_paypal_ec_form()
Returns the form for Express Checkout Shortcut Flow.
See also
1 string reference to 'uc_paypal_ec_form'
- uc_paypal_uc_payment_method in payment/
uc_paypal/ uc_paypal.module - Implements hook_uc_payment_method().
File
- payment/
uc_paypal/ uc_paypal.module, line 680 - Integrates various PayPal payment services and Instant Payment Notifications (IPN) with Ubercart!
Code
function uc_paypal_ec_form($form, &$form_state) {
$form['uc_paypal'] = array(
'#type' => 'image_button',
'#button_type' => 'checkout',
'#src' => 'https://www.paypal.com/en_US/i/btn/btn_xpressCheckoutsm.gif',
'#title' => t('Checkout with PayPal.'),
'#submit' => array(
'uc_cart_view_form_submit',
'uc_paypal_ec_form_submit',
),
);
return $form;
}