From 414c2ef8aefe4243ab547b0202f02db183b427d1 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 9 Sep 2017 11:28:06 +1000 Subject: [PATCH] remove unnecessary emoji handling --- booking.regn_node.inc | 3 +++ 1 file changed, 3 insertions(+) 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();