debugging

This commit is contained in:
Nathan Coad
2018-05-02 13:46:16 +10:00
parent 3b0d8c5628
commit 0874913fb8

View File

@@ -128,6 +128,8 @@ function booking_variety_session_callback($form, &$form_state) {
//for each entry in the variety timeslot table, create a new form select item
foreach($result as $timeslot) {
$fieldname = 'select-variety-' . $timeslot->tid;
watchdog('booking_debug', 'Timeslot @tid form state value:<br /><pre>@info</pre>',
array('@tid' => $timeslot->tid, '@info' => print_r($form_state['values'][$fieldname], true)));
//re-create the form element for this timeslot
$form['variety-sessions'][$fieldname] = array(