Index: skeleton_instance.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/skeleton/skeleton_instance.inc,v
retrieving revision 1.11
diff -u -r1.11 skeleton_instance.inc
--- skeleton_instance.inc	11 Jan 2009 23:05:34 -0000	1.11
+++ skeleton_instance.inc	27 Jan 2009 18:36:16 -0000
@@ -703,6 +703,9 @@
     $parent_node['values']['book']['bid'] = 'new';
     $parent_node['values']['book']['options'] = array();
     drupal_execute('book_node_form', $parent_node, $parent_node['values']);
+    // TODO: This will probably need to be removed if this call is integrated
+    // into the book module. See http://drupal.org/node/364529 for details.
+    menu_rebuild();
     // get the id we just created
     $book_id = $parent_node['nid'];
     $goto_id = $book_id;
@@ -732,6 +735,9 @@
 
       $node['values']['op'] = t('Save');
       drupal_execute($node['values']['type'] .'_node_form', $node, (object)$node['values']);
+      // TODO: This will probably need to be removed if this call is integrated
+      // into the book module. See http://drupal.org/node/364529 for details.
+      menu_rebuild();
       // Store all of the menu id's for each inserted template.
       $parents[$data->template_id] = $node['nid'];
     }
