/[drupal]/contributions/modules/node_export/node_export.api.php
ViewVC logotype

Diff of /contributions/modules/node_export/node_export.api.php

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

revision 1.1.2.3, Tue Oct 6 01:36:53 2009 UTC revision 1.1.2.4, Sat Oct 31 06:11:59 2009 UTC
# Line 53  function hook_node_export_node_alter(&$n Line 53  function hook_node_export_node_alter(&$n
53  function hook_node_export_node_encode_alter(&$out, $tab, $key, $value, $iteration) {  function hook_node_export_node_encode_alter(&$out, $tab, $key, $value, $iteration) {
54    // Start with something like this, and work on it:    // Start with something like this, and work on it:
55    $out = $tab ."  '". $key ."' => ". node_export_node_encode($value, $iteration) .",\n";    $out = $tab ."  '". $key ."' => ". node_export_node_encode($value, $iteration) .",\n";
56    }
57    
58    /**
59     * Manipulate node array before bulk export or import.
60     *
61     * The purpose of this is to allow a module to check nodes in the array for
62     * two or more nodes that must retain a relationship, and to add/remove other
63     * data to the array to assist with maintaining dependencies, relationships,
64     * references, and additional data required by the nodes.
65     *
66     * @param &$nodes
67     *   The node array to alter.
68     * @param $op
69     *   'import', 'after import', or 'export'.
70     */
71    function hook_node_export_node_bulk_alter(&$nodes, $op) {
72      // no example code
73  }  }

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

  ViewVC Help
Powered by ViewVC 1.1.2