From f200fbc9b2affa827d97d9f0b9843b1587b573a6 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 9 Sep 2017 19:46:19 +1000 Subject: [PATCH] layout fix --- booking.helper.inc | 2 +- booking.regn_node.inc | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/booking.helper.inc b/booking.helper.inc index 2be71f5..bfad8ae 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -4,7 +4,7 @@ * Helper function to strip emoji characters from input text * from https://stackoverflow.com/a/41831874/7638834 */ -function _booking_remove_emoji($text){ +function _booking_remove_emoji($text) { $clean_text = ""; /* return preg_replace('/([0-9|#][\x{20E3}])|[\x{00ae}|\x{00a9}|\x{203C}|\x{2047}|\x{2048}|\x{2049}|\x{3030}|\x{303D}|\x{2139}| diff --git a/booking.regn_node.inc b/booking.regn_node.inc index 3ee279b..a2790d9 100644 --- a/booking.regn_node.inc +++ b/booking.regn_node.inc @@ -290,14 +290,11 @@ function booking_load($nodes) { } function booking_insert($node) { - //TODO: Generalise this by using the keys from $node instead of hard coding everything - + //$default_keys = array('nid', 'type', 'language', 'created', 'promote', 'changed', 'status', 'title'); $data = array(); - //$default_keys = array('nid', 'type', 'language', 'created', 'promote', 'changed', 'status', 'title'); watchdog('booking_debug', "
Inserting node:\n@info
", array('@info' => print_r($node, TRUE))); - //watchdog('booking_debug', "
Sanitised data:\n@info
", array('@info' => print_r($data, TRUE))); db_insert('booking_person')->fields($node)->execute(); /*