remove unnecessary emoji handling
This commit is contained in:
@@ -295,12 +295,15 @@ function booking_insert($node) {
|
|||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
//$default_keys = array('nid', 'type', 'language', 'created', 'promote', 'changed', 'status', 'title');
|
//$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) {
|
foreach ($node as $key => $value) {
|
||||||
//check if the key is a field that belongs in the database
|
//check if the key is a field that belongs in the database
|
||||||
if ((strpos($key, "booking_") === 0) || $key === "nid") {
|
if ((strpos($key, "booking_") === 0) || $key === "nid") {
|
||||||
$data[$key] = _booking_remove_emoji($value);
|
$data[$key] = _booking_remove_emoji($value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
watchdog('booking_debug', "<pre>Inserting node:\n@info</pre>", array('@info' => print_r($data, TRUE)));
|
watchdog('booking_debug', "<pre>Inserting node:\n@info</pre>", array('@info' => print_r($data, TRUE)));
|
||||||
//watchdog('booking_debug', "<pre>Sanitised data:\n@info</pre>", array('@info' => print_r($data, TRUE)));
|
//watchdog('booking_debug', "<pre>Sanitised data:\n@info</pre>", array('@info' => print_r($data, TRUE)));
|
||||||
db_insert('booking_person')->fields($data)->execute();
|
db_insert('booking_person')->fields($data)->execute();
|
||||||
|
Reference in New Issue
Block a user