add debugging

This commit is contained in:
Nathan Coad
2018-01-29 17:48:52 +11:00
parent 1ad5da11d3
commit 404021335c

View File

@@ -798,6 +798,7 @@ function _booking_waitinglist_update_trigger()
$counter = 1;
foreach ($waiting_list as $person) {
watchdog('booking_debug', "Updating node !nid to have waitlist position of !counter", array('!nid' => $person->nid, '!counter' => $counter));
db_update('booking_person')
->fields(array(
'booking_waitlist_pos' => $counter++,
@@ -805,10 +806,8 @@ function _booking_waitinglist_update_trigger()
->condition('nid', $person->nid)
->execute();
}
}
function booking_view($node, $view_mode) {
global $event;
$rows = array();