-
Book Import: February 25, 2011 2:06
Commit e21c048 on 4.7.x-1.x, master, committed by Drupal Git User (LDAP)Stripping CVS keywords
-
This commit was manufactured as part of Drupal's Great Git Migration to create tag 'DRUPAL-4-7--1-0'. Sprout from master 2006-03-05 09:18:05 UTC Djun Kim <djun.kim@cielosystems.com> ' - added import options to deal with import of PHP code' Delete: contrib/explode2dir.php contrib/outline.php contrib/tidy-traverse.pl
-
- added import options to deal with import of PHP code - refactored interface to use validate/submit model - make sure variables are properly initialized - added watchdog logging - changes to invocation of drupal_xml_parser - remove file_check_upload()
-
- Added code to parse teaser elements - Added parameter to control how to deal with import of PHP pages (this is passed through to the element handlers)
-
- 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.
-
- applied fix for bug http://drupal.org/node/46698 supplied by jsloan - thanks - removed global arrays $new_nid and $parent_of to file save_node.php
-
- updated INSTALL and README for new version of bookimport.module
-
- 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
-
- updated to use the 4.7 Forms API - some cleanup of code (variable names, better comments)
-
- updated node class to reflect new node structure in 4.7 (new node_revisions table) - rearranged order of fields and functions to reflect order of fields in database