Remove custom node_save function

yrocq - December 11, 2008 - 15:49
Project:Wordpress Import
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:lavamind
Status:closed
Description

db_next_id() is deprecated. Use db_last_insert_id() instead.

#1

yrocq - December 11, 2008 - 17:10
Title:Use db_last_insert_id() instead of db_next_id» Remove custom node_save function

Remove custom node_save function and use sql query to change the fields that we can't set when creating the node.

#2

Raines37 - December 12, 2008 - 19:57

Custom node_save function just looks like a stripped down version of 5's. What extra fields were being set in it?

#3

yrocq - December 13, 2008 - 01:38

Hum, I may have confused with something else. If I remember, I created the wordpress_import_node_save because I wanted to prevent the watchdog table from being filled by nodes creation notices. Maybe it wasn't necessary and we could use the original function.

#4

yrocq - December 14, 2008 - 19:44
Assigned to:Anonymous» yrocq

#5

lavamind - November 1, 2009 - 03:44
Version:6.x-1.x-dev» 6.x-2.x-dev
Assigned to:yrocq» lavamind
Status:active» fixed

Fixed in 6.x-2.x-dev, we use Drupal's built-in node_save() function now.

#6

System Message - November 15, 2009 - 03:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.