Skip to content

Instantly share code, notes, and snippets.

@xanido
Created May 20, 2012 01:10
Show Gist options
  • Save xanido/2733064 to your computer and use it in GitHub Desktop.
Save xanido/2733064 to your computer and use it in GitHub Desktop.
Drupal node_export path export order patch
diff --git node_export.module node_export.module
index 8fc4321..8a10baa 100755
--- node_export.module
+++ node_export.module
@@ -375,13 +375,13 @@ function node_export_prepare_node(&$original_node) {
$node->taxonomy = $new_taxonomy;
}
+ // Fix menu array
+ $node->menu = node_export_get_menu($original_node);
+
// Attach path to the node. Drupal doesn't attach this anymore for
// performance reasons http://drupal.org/node/332333#comment-2163634.
$node->path = path_load(array('source' => 'node/' . $node->nid));
- // Fix menu array
- $node->menu = node_export_get_menu($original_node);
-
// Remove recursion from the object.
$node = node_export_remove_recursion($node);
@@ -1197,4 +1197,4 @@ if (!function_exists('uuid_get_uuid')) {
function uuid_get_uuid($table, $key, $id) {
return db_query("SELECT uuid FROM {" . $table . "} WHERE " . $key . " = :id", array(':id' => $id))->fetchField();
}
-}
\ No newline at end of file
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment