ancient code cleanup

This commit is contained in:
2016-05-02 17:31:00 +10:00
parent c0b40150d7
commit 1c222b87b3
2 changed files with 4 additions and 28 deletions

View File

@@ -527,27 +527,8 @@ function booking_update_7231() {
* Implementation of hook_install().
*/
function booking_install() {
// Create tables.
//not needed for d7
//drupal_install_schema('booking');
//TODO: Don't hard code this
//define('EVENTID', 1);
/*
limit bookings to 350
non workers $260
workers $300
married $540
full payment after 28 feb
$380 pp
*/
// Create some sample data
// TODO: Set default values for the config pages too
$result = db_insert('booking_price')
->fields(array(
'booking_eventid' => 1,
@@ -561,7 +542,7 @@ $result = db_insert('booking_price')
$result = db_insert('booking_event')
->fields(array(
'booking_eventname' => 'Study Weekend 2012',
'booking_eventname' => 'Sample Event',
'booking_event_active' => 1,
'booking_register_open' => 1312207199,
'booking_register_close' => 1340459999,
@@ -569,9 +550,7 @@ $result = db_insert('booking_event')
))
->execute();
//earlybird close is 31st Jan 2012 at 13:59:59 UTC
//earlybird close is 31st Jan 2012 at 13:59:59 UTC
}
/**

View File

@@ -19,10 +19,7 @@ define('EVENTID', 1);
define('BOOKING_PAYPAL_SUBMIT_URL', 'https://www.paypal.com/cgi-bin/webscr');
define('BOOKING_PAYPAL_SUBMIT_URL_SANDBOX', 'https://www.sandbox.paypal.com/cgi-bin/webscr');
define('BOOKING_PAYPAL_IPN_PATH', 'system/booking_paypal/ipn');
//define('TIMEZONE', 'Australia/Sydney');
define('BOOKING_DEFAULT_STATE', 'NSW');
//define('CUSTOM_EMAIL_COUNT', 10);
//define('STUDYGROUP_COUNT', 7);
// Load the include for various constants
module_load_include('inc', 'booking', 'booking.constants');