Index: includes/module.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/module.inc,v
retrieving revision 1.180
diff -u -p -r1.180 module.inc
--- includes/module.inc	28 Jan 2010 13:56:24 -0000	1.180
+++ includes/module.inc	13 Feb 2010 01:51:31 -0000
@@ -580,6 +580,12 @@ function module_implements($hook, $sort 
         $implementations['#write_cache'] = TRUE;
       }
     }
+    // Allow modules to change the weight of specific implementations but avoid
+    // an infinite loop. We can't call drupal_alter() earlier in the bootstrap
+    // sequence than it exists.
+    if ($hook != 'module_implements_alter' && function_exists('drupal_alter')) {
+      drupal_alter('module_implements', $implementations[$hook], $hook);
+    }
   }
   else {
     foreach ($implementations[$hook] as $module => $group) {
Index: modules/system/system.api.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.api.php,v
retrieving revision 1.131
diff -u -p -r1.131 system.api.php
--- modules/system/system.api.php	11 Feb 2010 17:44:47 -0000	1.131
+++ modules/system/system.api.php	13 Feb 2010 01:51:35 -0000
@@ -971,6 +971,28 @@ function hook_mail_alter(&$message) {
 }
 
 /**
+ *  Alter the registry of modules implementing a hook.
+ *
+ *  This hook is invoked during module_implements(). A module may implement
+ *  this hook in order to reorder the implementing modules, which are otherwise
+ *  ordered by the module's system weight.
+ *
+ *  @param &$implementations
+ *    An array keyed by the module's name. The value of each item corresponds
+ *    to a $group, which is usually FALSE, unless the implementation is in a
+ *    file named $module.$group.inc.
+ *  @param $hook
+ *    The name of the module hook being implemented.
+ */
+function hook_module_implements_alter(&$implementations, $hook) {
+  if ($hook == 'rdf_mapping') {
+    // Move my_module_rdf_mapping() to the end of the list.
+    unset($implementations['my_module']);
+    $implementations['my_module'] = FALSE;
+  }
+}
+
+/**
  * Alter the information parsed from module and theme .info files
  *
  * This hook is invoked in _system_rebuild_module_data() and in
