Index: modules/system/system.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.install,v
retrieving revision 1.513
diff -u -p -r1.513 system.install
--- modules/system/system.install	5 Oct 2010 00:31:19 -0000	1.513
+++ modules/system/system.install	5 Oct 2010 14:08:32 -0000
@@ -2854,6 +2854,16 @@ function system_update_7062() {
 }

 /**
+ * Delete {menu_links} records where type = MENU_CALLBACK to match the status of newly created links.
+ */
+function system_update_7063() {
+  $result = db_query('SELECT ml.mlid FROM {menu_links} ml INNER JOIN {menu_router} mr ON ml.router_path = mr.path WHERE ml.customized = 0 AND mr.type = :callback', array(':callback' => MENU_CALLBACK));
+  foreach ($result as $record) {
+    db_delete('menu_links')->condition('mlid', $record->mlid)->execute();
+  }
+}
+
+/**
  * @} End of "defgroup updates-6.x-to-7.x"
  * The next series of updates should start at 8000.
  */
