| 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 |
} |
} |