tidy up some disused code

This commit is contained in:
2016-08-10 15:14:00 +10:00
parent af648cce84
commit d906c2e220
2 changed files with 5 additions and 36 deletions

View File

@@ -186,7 +186,8 @@ function booking_admin() {
'#collapsible' => 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>Verify your country supports stripe at <a href="https://stripe.com/global">the stripe website</a>.</p>' .
'<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(
'#type' => 'container',
'#children' => $explanation_text,
@@ -455,17 +456,6 @@ function booking_admin() {
)
);
$form['regn_options']['booking_dependant_children_text'] = array(
'#type' => 'radios',
'#title' => t('Ask whether a couple has dependant children attending?'),
'#description' => t('Select whether to ask about dependant children of married couples in the registration form'),
'#options' => array(
0 => t('No'),
t('Yes')
),
'#default_value' => variable_get('booking_ask_dependant_children', 0)
);
$form['regn_options']['booking_enable_medicare'] = array(
'#type' => 'radios',
'#title' => t('Enable Medicare requirement?'),
@@ -507,7 +497,7 @@ function booking_admin() {
$form['regn_options']['booking_enable_passport'] = array(
'#type' => 'radios',
'#title' => t('Enable passport information?'),
'#title' => t('Enable passport information? (DEPRECATED)'),
'#description' => t('Select whether to include passport details in the booking form.'),
'#options' => array(
0 => t('No'),

View File

@@ -227,18 +227,6 @@ function booking_menu() {
'type' => MENU_CALLBACK,
);
/*
$items['admin/booking/createview'] = array(
'title' => 'Booking Test mysql view creation',
'description' => 'Booking Test mysql view creation',
'page callback' => '_booking_node_create_mysqlview',
//'access arguments' => array('edit bookings'),
//always allow access to this page - security risk!
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
*/
//pages for attendees to fill out information
$items['booking'] = array(
'title' => $bookingTitle . ' Booking Form',
@@ -246,21 +234,12 @@ function booking_menu() {
'access arguments' => array('access booking form'),
'type' => MENU_NORMAL_ITEM,
);
// @todo remove this after testing
/*
$items['stripetest'] = array(
'title' => $bookingTitle . ' Stripe Test',
'page callback' => 'drupal_get_form',
'page arguments' => array('booking_stripeform_form'),
'access arguments' => array('access booking form'),
'type' => MENU_NORMAL_ITEM,
);
*/
$items['bookingfinal'] = array(
'title' => $bookingTitle . ' Registration Completed',
'page callback' => 'booking_payment_completed_page',
'access arguments' => array('access booking form'),
'type' => MENU_NORMAL_ITEM,
'type' => MENU_CALLBACK,
);
$items['confirm/%'] = array(
'title' => 'Booking Payment',