add debug

This commit is contained in:
Nathan Coad
2018-06-30 07:38:53 +10:00
parent 647a44e0ab
commit a30cb2c88c

View File

@@ -434,6 +434,7 @@ function booking_rooms_definition_form_validate($form, $form_state) {
if (! is_numeric($values['booking_room_number'])) { if (! is_numeric($values['booking_room_number'])) {
form_set_error('booking_room_number', t('Room number must be numeric. If you need to use a more descriptive label, please use the room label field.')); form_set_error('booking_room_number', t('Room number must be numeric. If you need to use a more descriptive label, please use the room label field.'));
watchdog('booking_debug', "<pre>Room definition submission:\n@info</pre>", array('@info' => print_r( $form_state, true)));
} }
} }