You are here

function hook_node_export_alter in Node export 7.3

Same name and namespace in other branches
  1. 6.3 node_export.api.php \hook_node_export_alter()

Manipulate node array before export.

The purpose of this is to allow a module to check nodes in the array for two or more nodes that must retain a relationship, and to add/remove other data to the array to assist with maintaining dependencies, relationships, references, and additional data required by the nodes.

Parameters

&$nodes: The array of nodes to alter.

$format: The format of node code being used.

4 functions implement hook_node_export_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

node_export_dependency_node_export_alter in modules/node_export_dependency/node_export_dependency.module
Implements hook_node_export_alter().
node_export_features_node_export_alter in modules/node_export_features/node_export_features.module
Implements hook_node_export_alter().
node_export_node_export_alter in ./node_export.module
Implements hook_node_export_alter(). In case when node translation is enabled we have to ensure that original nodes appear in export before their translations. This is done to properly assign tnid to translations, because we don't know until the…
node_export_relation_node_export_alter in modules/node_export_relation/node_export_relation.module
Implements hook_node_export_alter().

File

./node_export.api.php, line 96
Documents Node export's hooks for api reference.

Code

function hook_node_export_alter(&$nodes, $format) {

  // no example code
}