? desc.patch
? menu.patch
? settings.patch
? taxonomy.patch
? types.patch
Index: drupalorg_testing.profile
===================================================================
RCS file: /cvs/drupal/contributions/profiles/drupalorg_testing/drupalorg_testing.profile,v
retrieving revision 1.7
diff -u -p -r1.7 drupalorg_testing.profile
--- drupalorg_testing.profile	14 May 2007 01:40:38 -0000	1.7
+++ drupalorg_testing.profile	14 May 2007 02:18:51 -0000
@@ -38,6 +38,7 @@ function drupalorg_testing_profile_final
   _drupalorg_testing_delete_old_content();
   _drupalorg_testing_create_content();
   _drupalorg_testing_configure_project_settings();
+  _drupalorg_testing_create_menus();
   _block_rehash();
   menu_rebuild();
 }
@@ -271,3 +272,38 @@ function _drupalorg_testing_configure_pr
     variable_set("project_sort_method_used_$tid", $settings);
   }
 }
+
+/**
+ * Setup menus to match drupal.org.
+ */
+function _drupalorg_testing_create_menus() {
+  // Setup primary links.
+  $pid = variable_get('menu_primary_menu', 0);
+  $items['book'] = array(
+    'path' => 'book',
+    'title' => t('Handbooks'),
+    'weight' => 0,
+  );
+  $items['forum'] = array(
+    'path' => 'forum',
+    'title' => t('Forum'),
+    'weight' => 2,
+  );
+  $items['project'] = array(
+    'path' => 'project',
+    'title' => t('Downloads'),
+    'weight' => 4,
+  );
+  $items['contact'] = array(
+    'path' => 'contact',
+    'title' => t('Contact'),
+    'weight' => 6,
+  );
+
+  foreach ($items as $item) {
+    $item['pid'] = $pid;
+    $item['type'] = 118; // Don't know what it means, but it works...
+    $item['description'] = '';
+    menu_save_item($item);
+  }
+}
\ No newline at end of file
