Log of /contributions/modules/bookimport/save_node.php
Parent Directory
|
Revision Log
|
Revision Graph
Revision
1.3 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 28 07:27:10 2006 UTC
(3 years, 9 months ago)
by
puregin
Branch:
MAIN
CVS Tags:
DRUPAL-4-7--1-0,
HEAD
Branch point for:
DRUPAL-4-7
Changes since
1.2: +64 -50 lines
Diff to
previous 1.2
- wrapped 'foreach()' loop in make_links() in a test to ensure array is nonempty
(fixes bug http://drupal.org/node/46708)
- deal with bug where creating a new book containing a 'new node' - one with
no nid - confuses 'make_links()'. This happens because the new node has
no original nid; thus there is an entry [] => new_id in the array $new_nid.
But when we look up the parent of a root node, it is empty, and when we
look up the corresponding new nid, we get the new nid of the new node,
rather than the root node.
- renamed utility functions to avoid name collisions
- refactored function definitions to remove $new_nid and $parent_of params
- moved global arrays $new_nid and $parent_of into this file, since these
are used here and only here.
Revision
1.2 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Jan 27 06:45:45 2006 UTC
(3 years, 9 months ago)
by
puregin
Branch:
MAIN
Changes since
1.1: +133 -129 lines
Diff to
previous 1.1
- corrected incorrect function call: get_md5() should be get_md5_body()
- corrected name of field: nodetype rather than type
- changed order of assignments to fields to match the order in which
they appear in database tables
- updated code to match new behaviour of node_save() (nid is not returned now)
- refactored update, insert cases into functions for ease of maintenance
- use node_save() rather than doing updates to database tables by hand
- fixed some bugs with variables not being properly initialized prior to
use in database queries
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.