add admin field for stripe checkout logo
This commit is contained in:
@@ -23,7 +23,8 @@ function booking_admin() {
|
|||||||
//form commences here
|
//form commences here
|
||||||
$form['email'] = array(
|
$form['email'] = array(
|
||||||
'#type' => 'fieldset',
|
'#type' => 'fieldset',
|
||||||
'#title' => 'Email Addresses'
|
'#title' => 'Email Addresses',
|
||||||
|
'#collapsible' => TRUE,
|
||||||
);
|
);
|
||||||
|
|
||||||
$form['email']['booking_from_email'] = array(
|
$form['email']['booking_from_email'] = array(
|
||||||
@@ -76,7 +77,8 @@ function booking_admin() {
|
|||||||
|
|
||||||
$form['attendee'] = array(
|
$form['attendee'] = array(
|
||||||
'#type' => 'fieldset',
|
'#type' => 'fieldset',
|
||||||
'#title' => 'Attendee restrictions'
|
'#title' => 'Attendee restrictions',
|
||||||
|
'#collapsible' => TRUE,
|
||||||
);
|
);
|
||||||
|
|
||||||
$form['attendee']['booking_max_dob'] = array(
|
$form['attendee']['booking_max_dob'] = array(
|
||||||
@@ -124,7 +126,7 @@ function booking_admin() {
|
|||||||
'#type' => 'fieldset',
|
'#type' => 'fieldset',
|
||||||
'#title' => 'Paypal Settings',
|
'#title' => 'Paypal Settings',
|
||||||
'#collapsible' => TRUE,
|
'#collapsible' => TRUE,
|
||||||
'#collapsed' => TRUE,
|
//'#collapsed' => TRUE,
|
||||||
);
|
);
|
||||||
$form['paypal']['booking_use_paypal'] = array(
|
$form['paypal']['booking_use_paypal'] = array(
|
||||||
'#type' => 'radios',
|
'#type' => 'radios',
|
||||||
@@ -182,7 +184,7 @@ function booking_admin() {
|
|||||||
'#type' => 'fieldset',
|
'#type' => 'fieldset',
|
||||||
'#title' => 'Stripe Settings',
|
'#title' => 'Stripe Settings',
|
||||||
'#collapsible' => TRUE,
|
'#collapsible' => TRUE,
|
||||||
'#collapsed' => TRUE,
|
//'#collapsed' => TRUE,
|
||||||
);
|
);
|
||||||
$explanation_text = t('<p>Register an account at stripe.com and visit <a href="https://dashboard.stripe.com/account/apikeys">the API keys page</a>, then copy your API keys here.</p>');
|
$explanation_text = t('<p>Register an account at stripe.com and visit <a href="https://dashboard.stripe.com/account/apikeys">the API keys page</a>, then copy your API keys here.</p>');
|
||||||
$form['stripe']['explanation-text'] = array(
|
$form['stripe']['explanation-text'] = array(
|
||||||
@@ -244,11 +246,18 @@ function booking_admin() {
|
|||||||
'#size' => 5,
|
'#size' => 5,
|
||||||
'#description' => 'Percentage of transaction charged as stripe fee for transactions that include currency conversion, currently 2.9% in Australia',
|
'#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
|
//feature settings
|
||||||
$form['features'] = array(
|
$form['features'] = array(
|
||||||
'#type' => 'fieldset',
|
'#type' => 'fieldset',
|
||||||
'#title' => 'Enable/Disable Features'
|
'#title' => 'Enable/Disable Features',
|
||||||
|
'#collapsible' => TRUE,
|
||||||
);
|
);
|
||||||
$form['features']['booking_payment_processor'] = array (
|
$form['features']['booking_payment_processor'] = array (
|
||||||
'#type' => 'radios',
|
'#type' => 'radios',
|
||||||
@@ -382,7 +391,8 @@ function booking_admin() {
|
|||||||
|
|
||||||
$form['regn_options'] = array(
|
$form['regn_options'] = array(
|
||||||
'#type' => 'fieldset',
|
'#type' => 'fieldset',
|
||||||
'#title' => 'Registration Form Configuration'
|
'#title' => 'Registration Form Configuration',
|
||||||
|
'#collapsible' => TRUE,
|
||||||
);
|
);
|
||||||
|
|
||||||
$form['regn_options']['booking_default_country'] = array(
|
$form['regn_options']['booking_default_country'] = array(
|
||||||
@@ -607,7 +617,8 @@ function booking_admin() {
|
|||||||
|
|
||||||
$form['management'] = array(
|
$form['management'] = array(
|
||||||
'#type' => 'fieldset',
|
'#type' => 'fieldset',
|
||||||
'#title' => 'Data Management Options'
|
'#title' => 'Data Management Options',
|
||||||
|
'#collapsible' => TRUE,
|
||||||
);
|
);
|
||||||
$form['management']['booking_csv_exclude_fields'] = array(
|
$form['management']['booking_csv_exclude_fields'] = array(
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
|
@@ -52,7 +52,7 @@ function booking_stripe_form($node, &$form_state, $person, $invoiceid, $net_amou
|
|||||||
'pubkey' => _booking_get_stripe_public_key(),
|
'pubkey' => _booking_get_stripe_public_key(),
|
||||||
'form_selector' => str_replace('_', '-', __FUNCTION__),
|
'form_selector' => str_replace('_', '-', __FUNCTION__),
|
||||||
'name' => $event->booking_eventname,
|
'name' => $event->booking_eventname,
|
||||||
'image' => '',
|
'image' => variable_get('booking_stripe_logo', ''),
|
||||||
);
|
);
|
||||||
//attach settings and javascript to the form
|
//attach settings and javascript to the form
|
||||||
$form['#attached'] = array(
|
$form['#attached'] = array(
|
||||||
|
Reference in New Issue
Block a user