diff --git a/booking.regn_node.inc b/booking.regn_node.inc index 7c7d962..c5ae667 100644 --- a/booking.regn_node.inc +++ b/booking.regn_node.inc @@ -295,12 +295,15 @@ function booking_insert($node) { $data = array(); //$default_keys = array('nid', 'type', 'language', 'created', 'promote', 'changed', 'status', 'title'); + //no longer required since we do this in the form submit hook + /* foreach ($node as $key => $value) { //check if the key is a field that belongs in the database if ((strpos($key, "booking_") === 0) || $key === "nid") { $data[$key] = _booking_remove_emoji($value); } } + */ watchdog('booking_debug', "
Inserting node:\n@info", array('@info' => print_r($data, TRUE))); //watchdog('booking_debug', "
Sanitised data:\n@info", array('@info' => print_r($data, TRUE))); db_insert('booking_person')->fields($data)->execute();