From 0bd8eed2cc15f9acb1476c98aa329f593d24bd0e Mon Sep 17 00:00:00 2001
From: Larry Garfield <larry@garfieldtech.com>
Date: Sat, 1 Sep 2012 20:31:47 -0500
Subject: [PATCH] Minor fixups in router_rebuild().

---
 core/includes/common.inc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/core/includes/common.inc b/core/includes/common.inc
index b75185e23652..e27f4d9f0cde 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -6845,14 +6845,13 @@ function drupal_flush_all_caches() {
 function router_rebuild() {
   // We need to manually call each module so that we can know which module
   // a given item came from.
-  $callbacks = array();
 
   $dumper = drupal_container()->get('router.dumper', Container::NULL_ON_INVALID_REFERENCE);
 
   if ($dumper) {
     foreach (module_implements('route_info') as $module) {
       $routes = call_user_func($module . '_route_info');
-      drupal_alter('router_info', $routes);
+      drupal_alter('router_info', $routes, $module);
       $dumper->addRoutes($routes);
       $dumper->dump(array('route_set' => $module));
     }
-- 
GitLab