updates to travel form and add calls to _booking_node_create_mysqlview
This commit is contained in:
@@ -531,37 +531,42 @@ function booking_update_7232() {
|
||||
db_change_field('booking_person', 'booking_event_id', 'booking_eventid', $spec);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensure SQL View booking_person_view is created
|
||||
*/
|
||||
function booking_update_7233() {
|
||||
_booking_node_create_mysqlview();
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hook_install().
|
||||
*/
|
||||
function booking_install() {
|
||||
//create the sql view we use
|
||||
_booking_node_create_mysqlview();
|
||||
|
||||
// Create some sample data
|
||||
// TODO: Set default values for the config pages too
|
||||
$result = db_insert('booking_price')
|
||||
->fields(array(
|
||||
'booking_eventid' => 1,
|
||||
'booking_price' => '50.00',
|
||||
'booking_price_descrip' => 'Deposit',
|
||||
'booking_buttonid' => '',
|
||||
'booking_price_active' => 1,
|
||||
'booking_depositonly' => 1,
|
||||
))
|
||||
->execute();
|
||||
|
||||
$result = db_insert('booking_event')
|
||||
->fields(array(
|
||||
'booking_eventname' => 'Sample Event',
|
||||
'booking_event_active' => 1,
|
||||
'booking_register_open' => 1312207199,
|
||||
'booking_register_close' => 1340459999,
|
||||
'booking_earlybird_close' => 1328018399,
|
||||
))
|
||||
->execute();
|
||||
|
||||
//earlybird close is 31st Jan 2012 at 13:59:59 UTC
|
||||
$result = db_insert('booking_price')
|
||||
->fields(array(
|
||||
'booking_eventid' => 1,
|
||||
'booking_price' => '50.00',
|
||||
'booking_price_descrip' => 'Deposit',
|
||||
'booking_buttonid' => '',
|
||||
'booking_price_active' => 1,
|
||||
'booking_depositonly' => 1,
|
||||
))
|
||||
->execute();
|
||||
//earlybird close is 31st Jan 2012 at 13:59:59 UTC
|
||||
$result = db_insert('booking_event')
|
||||
->fields(array(
|
||||
'booking_eventname' => 'Sample Event',
|
||||
'booking_event_active' => 1,
|
||||
'booking_register_open' => 1312207199,
|
||||
'booking_register_close' => 1340459999,
|
||||
'booking_earlybird_close' => 1328018399,
|
||||
))
|
||||
->execute();
|
||||
|
||||
//create the sql view booking_person_view when first installing this module
|
||||
_booking_node_create_mysqlview();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user