Index: head2head.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/head2head/head2head.module,v
retrieving revision 1.45
diff -u -p -r1.45 head2head.module
--- head2head.module	5 Oct 2010 07:53:57 -0000	1.45
+++ head2head.module	6 Oct 2010 05:36:35 -0000
@@ -720,3 +720,13 @@ function head2head_881530() {
     }
   }
 }
+
+/**
+ * Delete {menu_links} records for 'type' => MENU_CALLBACK which would not appear in a fresh install.
+ */
+function head2head_907690() {
+  $result = db_query('SELECT ml.mlid FROM {menu_links} ml INNER JOIN {menu_router} mr ON ml.router_path = mr.path WHERE ml.module = :system AND ml.customized = 0 AND mr.type = :callback', array(':callback' => 0, ':system' => 'system'));
+  foreach ($result as $record) {
+    db_delete('menu_links')->condition('mlid', $record->mlid)->execute();
+  }
+}
