Update branch from d.o.
This commit is contained in:
7
images/solid-dark.svg
Normal file
7
images/solid-dark.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 5.5 KiB |
@ -8,9 +8,9 @@ core = 7.x
|
|||||||
php = 5.3
|
php = 5.3
|
||||||
|
|
||||||
|
|
||||||
; Information added by Drupal.org packaging script on 2016-10-03
|
; Information added by Drupal.org packaging script on 2017-05-19
|
||||||
version = "7.x-2.2+1-dev"
|
version = "7.x-2.2+2-dev"
|
||||||
core = "7.x"
|
core = "7.x"
|
||||||
project = "uc_stripe"
|
project = "uc_stripe"
|
||||||
datestamp = "1475516941"
|
datestamp = "1495159090"
|
||||||
|
|
||||||
|
@ -150,6 +150,15 @@ function uc_stripe_form_uc_cart_checkout_form_alter(&$form, &$form_state) {
|
|||||||
'#weight' => -1000,
|
'#weight' => -1000,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Powered by Stripe (logo from https://stripe.com/about/resources)
|
||||||
|
if (variable_get('uc_stripe_poweredby', FALSE)) {
|
||||||
|
$payment_form['field_message'] = array(
|
||||||
|
'#type' => 'item',
|
||||||
|
'#markup' => "<a href='http://stripe.com'><img src=" . '/' . drupal_get_path('module', 'uc_stripe') . '/images/solid-dark.svg' . " alt='Powered by Stripe'></a>",
|
||||||
|
'#weight' => 1,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$payment_form['stripe_token'] = array(
|
$payment_form['stripe_token'] = array(
|
||||||
'#type' => 'hidden',
|
'#type' => 'hidden',
|
||||||
'#default_value' => 'default',
|
'#default_value' => 'default',
|
||||||
@ -310,7 +319,7 @@ function uc_stripe_settings_form() {
|
|||||||
$form['uc_stripe_settings']['uc_stripe_poweredby'] = array(
|
$form['uc_stripe_settings']['uc_stripe_poweredby'] = array(
|
||||||
'#type' => 'checkbox',
|
'#type' => 'checkbox',
|
||||||
'#title' => t('Powered by Stripe'),
|
'#title' => t('Powered by Stripe'),
|
||||||
'#description' => 'Show "powered by Stripe" in shopping cart.',
|
'#description' => 'Show "powered by Stripe" in checkout.',
|
||||||
'#default_value' => variable_get('uc_stripe_poweredby', FALSE),
|
'#default_value' => variable_get('uc_stripe_poweredby', FALSE),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user