? add-links-227435-2.patch
? add-links-227435-3.patch
? add-links-227435-4.patch
? add-links-227435-5.patch
? add-links-227435-7.patch
? add-links-227435-8.patch
? all-test.patch
? change-label-266696-19.patch
? cleanup-allowed-271577-20.patch
? move-link-227435-10.patch
Index: content.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/cck/content.module,v
retrieving revision 1.301.2.14
diff -u -p -r1.301.2.14 content.module
--- content.module	29 Jun 2008 20:41:34 -0000	1.301.2.14
+++ content.module	29 Jun 2008 20:53:01 -0000
@@ -88,6 +88,19 @@ function content_perm() {
 }
 
 /**
+ * Implementation of hook_menu_link_alter().
+ */
+function content_menu_link_alter(&$item) {
+  // Alter the Content types page to be under Site Building, where it will be by
+  // default in Drupal 7 (but don't change it if it has already been moved).
+  if (($item['link_path'] == 'admin/content/types') && empty($item['customized']) && ($item['module'] == 'system')) {
+    $item['customized'] = TRUE;
+    $plid = db_result(db_query("SELECT mlid FROM {menu_links} WHERE link_path = '%s' AND module = '%s'", 'admin/build', 'system'));
+    $item['plid'] = $plid;
+  }
+}
+
+/**
  * Implementation of hook_menu_alter().
  */
 function content_menu_alter(&$items) {
