test tweak to booking_insert
This commit is contained in:
@@ -11,6 +11,8 @@
|
|||||||
*/
|
*/
|
||||||
function booking_earlyaccess_admin() {
|
function booking_earlyaccess_admin() {
|
||||||
|
|
||||||
|
// @todo - list all early access codes for the current event, whether they're available, and who used them if not
|
||||||
|
|
||||||
global $event;
|
global $event;
|
||||||
$output = "";
|
$output = "";
|
||||||
$header = array('Study Group', 'Session Count', 'Reading Group?', 'Edit Definition');
|
$header = array('Study Group', 'Session Count', 'Reading Group?', 'Edit Definition');
|
||||||
|
@@ -276,6 +276,9 @@ function booking_insert($node) {
|
|||||||
watchdog('booking_debug', "<pre>Inserting node:\n@info</pre>", array('@info' => print_r($node, TRUE)));
|
watchdog('booking_debug', "<pre>Inserting node:\n@info</pre>", array('@info' => print_r($node, TRUE)));
|
||||||
//TODO: Generalise this by using the keys from $node instead of hard coding everything
|
//TODO: Generalise this by using the keys from $node instead of hard coding everything
|
||||||
|
|
||||||
|
db_insert('booking_person')->fields($node)->execute();
|
||||||
|
|
||||||
|
/*
|
||||||
db_insert('booking_person')
|
db_insert('booking_person')
|
||||||
->fields(array(
|
->fields(array(
|
||||||
'nid' => $node->nid,
|
'nid' => $node->nid,
|
||||||
@@ -348,6 +351,7 @@ function booking_insert($node) {
|
|||||||
'booking_comment_field' => $node->booking_comment_field,
|
'booking_comment_field' => $node->booking_comment_field,
|
||||||
))
|
))
|
||||||
->execute();
|
->execute();
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user