ancient code cleanup
This commit is contained in:
@@ -527,27 +527,8 @@ function booking_update_7231() {
|
|||||||
* Implementation of hook_install().
|
* Implementation of hook_install().
|
||||||
*/
|
*/
|
||||||
function booking_install() {
|
function booking_install() {
|
||||||
// Create tables.
|
// Create some sample data
|
||||||
//not needed for d7
|
// TODO: Set default values for the config pages too
|
||||||
//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
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$result = db_insert('booking_price')
|
$result = db_insert('booking_price')
|
||||||
->fields(array(
|
->fields(array(
|
||||||
'booking_eventid' => 1,
|
'booking_eventid' => 1,
|
||||||
@@ -561,7 +542,7 @@ $result = db_insert('booking_price')
|
|||||||
|
|
||||||
$result = db_insert('booking_event')
|
$result = db_insert('booking_event')
|
||||||
->fields(array(
|
->fields(array(
|
||||||
'booking_eventname' => 'Study Weekend 2012',
|
'booking_eventname' => 'Sample Event',
|
||||||
'booking_event_active' => 1,
|
'booking_event_active' => 1,
|
||||||
'booking_register_open' => 1312207199,
|
'booking_register_open' => 1312207199,
|
||||||
'booking_register_close' => 1340459999,
|
'booking_register_close' => 1340459999,
|
||||||
@@ -569,9 +550,7 @@ $result = db_insert('booking_event')
|
|||||||
))
|
))
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
//earlybird close is 31st Jan 2012 at 13:59:59 UTC
|
//earlybird close is 31st Jan 2012 at 13:59:59 UTC
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -19,10 +19,7 @@ define('EVENTID', 1);
|
|||||||
define('BOOKING_PAYPAL_SUBMIT_URL', 'https://www.paypal.com/cgi-bin/webscr');
|
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_SUBMIT_URL_SANDBOX', 'https://www.sandbox.paypal.com/cgi-bin/webscr');
|
||||||
define('BOOKING_PAYPAL_IPN_PATH', 'system/booking_paypal/ipn');
|
define('BOOKING_PAYPAL_IPN_PATH', 'system/booking_paypal/ipn');
|
||||||
//define('TIMEZONE', 'Australia/Sydney');
|
|
||||||
define('BOOKING_DEFAULT_STATE', 'NSW');
|
define('BOOKING_DEFAULT_STATE', 'NSW');
|
||||||
//define('CUSTOM_EMAIL_COUNT', 10);
|
|
||||||
//define('STUDYGROUP_COUNT', 7);
|
|
||||||
|
|
||||||
// Load the include for various constants
|
// Load the include for various constants
|
||||||
module_load_include('inc', 'booking', 'booking.constants');
|
module_load_include('inc', 'booking', 'booking.constants');
|
||||||
|
Reference in New Issue
Block a user