diff --git a/booking.admin.inc b/booking.admin.inc index c49a9f8..daaa7d1 100644 --- a/booking.admin.inc +++ b/booking.admin.inc @@ -23,7 +23,8 @@ function booking_admin() { //form commences here $form['email'] = array( '#type' => 'fieldset', - '#title' => 'Email Addresses' + '#title' => 'Email Addresses', + '#collapsible' => TRUE, ); $form['email']['booking_from_email'] = array( @@ -76,7 +77,8 @@ function booking_admin() { $form['attendee'] = array( '#type' => 'fieldset', - '#title' => 'Attendee restrictions' + '#title' => 'Attendee restrictions', + '#collapsible' => TRUE, ); $form['attendee']['booking_max_dob'] = array( @@ -124,7 +126,7 @@ function booking_admin() { '#type' => 'fieldset', '#title' => 'Paypal Settings', '#collapsible' => TRUE, - '#collapsed' => TRUE, + //'#collapsed' => TRUE, ); $form['paypal']['booking_use_paypal'] = array( '#type' => 'radios', @@ -182,7 +184,7 @@ function booking_admin() { '#type' => 'fieldset', '#title' => 'Stripe Settings', '#collapsible' => TRUE, - '#collapsed' => TRUE, + //'#collapsed' => TRUE, ); $explanation_text = t('

Register an account at stripe.com and visit the API keys page, then copy your API keys here.

'); $form['stripe']['explanation-text'] = array( @@ -244,11 +246,18 @@ function booking_admin() { '#size' => 5, '#description' => 'Percentage of transaction charged as stripe fee for transactions that include currency conversion, currently 2.9% in Australia', ); + $form['stripe']['booking_stripe_logo'] = array ( + '#type' => 'textfield', + '#title' => t('Logo URL for Stripe Checkout Form'), + '#description' => 'Enter the full URL to a logo png file that will be used on the stripe checkout form.', + '#default_value' => variable_get('booking_stripe_logo', ''), + ); //feature settings $form['features'] = array( '#type' => 'fieldset', - '#title' => 'Enable/Disable Features' + '#title' => 'Enable/Disable Features', + '#collapsible' => TRUE, ); $form['features']['booking_payment_processor'] = array ( '#type' => 'radios', @@ -382,7 +391,8 @@ function booking_admin() { $form['regn_options'] = array( '#type' => 'fieldset', - '#title' => 'Registration Form Configuration' + '#title' => 'Registration Form Configuration', + '#collapsible' => TRUE, ); $form['regn_options']['booking_default_country'] = array( @@ -607,7 +617,8 @@ function booking_admin() { $form['management'] = array( '#type' => 'fieldset', - '#title' => 'Data Management Options' + '#title' => 'Data Management Options', + '#collapsible' => TRUE, ); $form['management']['booking_csv_exclude_fields'] = array( '#type' => 'textfield', diff --git a/booking.stripe.inc b/booking.stripe.inc index f9beb0c..6dea0a8 100644 --- a/booking.stripe.inc +++ b/booking.stripe.inc @@ -52,7 +52,7 @@ function booking_stripe_form($node, &$form_state, $person, $invoiceid, $net_amou 'pubkey' => _booking_get_stripe_public_key(), 'form_selector' => str_replace('_', '-', __FUNCTION__), 'name' => $event->booking_eventname, - 'image' => '', + 'image' => variable_get('booking_stripe_logo', ''), ); //attach settings and javascript to the form $form['#attached'] = array(