layout fix
This commit is contained in:
@@ -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}|
|
||||
|
@@ -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
|
||||
|
||||
$data = array();
|
||||
//$default_keys = array('nid', 'type', 'language', 'created', 'promote', 'changed', 'status', 'title');
|
||||
$data = array();
|
||||
|
||||
watchdog('booking_debug', "<pre>Inserting node:\n@info</pre>", array('@info' => print_r($node, TRUE)));
|
||||
//watchdog('booking_debug', "<pre>Sanitised data:\n@info</pre>", array('@info' => print_r($data, TRUE)));
|
||||
db_insert('booking_person')->fields($node)->execute();
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user