/[drupal]/contributions/modules/bookimport/save_node.php
ViewVC logotype

Log of /contributions/modules/bookimport/save_node.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

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

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Sep 2 17:06:59 2005 UTC (4 years, 2 months ago) by puregin
Branch: MAIN
Branch point for: DRUPAL-4-6
Initial checkin

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2