From b9c032558e5f1a76e73753a14157327206c6d924 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Wed, 1 Jun 2016 22:20:18 +1000 Subject: [PATCH] fix error handling --- booking.admin.inc | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/booking.admin.inc b/booking.admin.inc index 1df3862..8617e1b 100644 --- a/booking.admin.inc +++ b/booking.admin.inc @@ -6,7 +6,8 @@ function booking_admin() { - $form = array(); + $form = array(); + //regenerate all our menu hooks when loading this form menu_rebuild(); @@ -16,19 +17,11 @@ function booking_admin() watchdog('booking_debug', "
SQL View booking_person_view check\n@info
", array('@info' => print_r( $sqlview_check, true))); } catch (Exception $e) { - watchdog('booking_debug', "
SQL View booking_person_view check does not exist\n@info
", array('@info' => $e->message)); + watchdog('booking_debug', "
SQL View booking_person_view check does not exist\n@info
", array('@info' => $e->getMessage())); _booking_node_create_mysqlview(); } - /* - if (! $sqlview_check) { - watchdog('booking_debug', "SQL View booking_person_view check does not exist"); - _booking_node_create_mysqlview(); - } - else { - watchdog('booking_debug', "
SQL View booking_person_view check\n@info
", array('@info' => print_r( $sqlview_check, true))); - } - */ - + + //form commences here $form['email'] = array( '#type' => 'fieldset', '#title' => 'Email Addresses'