updates to travel form and add calls to _booking_node_create_mysqlview

This commit is contained in:
2016-06-01 22:07:48 +10:00
parent a01096d1a5
commit 03d8681c55
3 changed files with 59 additions and 41 deletions

View File

@@ -9,6 +9,16 @@ function booking_admin()
//regenerate all our menu hooks when loading this form
menu_rebuild();
//create the mysql view booking_person_view if necessary
$sqlview_check = db_query("SELECT 1 FROM {booking_person_view}")->fetchAssoc();
if (! $sqlview_check) {
watchdog('booking_debug', "SQL View booking_person_view check does not exist");
_booking_node_create_mysqlview();
}
else {
watchdog('booking_debug', "<pre>SQL View booking_person_view check\n@info</pre>", array('@info' => print_r( $sqlview_check, true)));
}
$form = array();
$form['email'] = array(