From 8493a9c1f74b754f41008d7b95095a9a02dca540 Mon Sep 17 00:00:00 2001 From: mattbk Date: Fri, 19 May 2017 09:53:14 -0500 Subject: [PATCH] Update branch from d.o. --- images/solid-dark.svg | 7 +++++++ uc_stripe.info | 6 +++--- uc_stripe.module | 11 ++++++++++- 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 images/solid-dark.svg diff --git a/images/solid-dark.svg b/images/solid-dark.svg new file mode 100644 index 0000000..77561bd --- /dev/null +++ b/images/solid-dark.svg @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/uc_stripe.info b/uc_stripe.info index cf4cc9f..a7be141 100644 --- a/uc_stripe.info +++ b/uc_stripe.info @@ -8,9 +8,9 @@ core = 7.x php = 5.3 -; Information added by Drupal.org packaging script on 2016-10-03 -version = "7.x-2.2+1-dev" +; Information added by Drupal.org packaging script on 2017-05-19 +version = "7.x-2.2+2-dev" core = "7.x" project = "uc_stripe" -datestamp = "1475516941" +datestamp = "1495159090" diff --git a/uc_stripe.module b/uc_stripe.module index b39552e..ba489e0 100644 --- a/uc_stripe.module +++ b/uc_stripe.module @@ -150,6 +150,15 @@ function uc_stripe_form_uc_cart_checkout_form_alter(&$form, &$form_state) { '#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' => "Powered by Stripe", + '#weight' => 1, + ); + } + $payment_form['stripe_token'] = array( '#type' => 'hidden', '#default_value' => 'default', @@ -310,7 +319,7 @@ function uc_stripe_settings_form() { $form['uc_stripe_settings']['uc_stripe_poweredby'] = array( '#type' => 'checkbox', '#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), );