Minor fixups in router_rebuild().

8.0.x
Larry Garfield 2012-09-01 20:31:47 -05:00 committed by effulgentsia
parent 89e4c42bbd
commit 0bd8eed2cc
1 changed files with 1 additions and 2 deletions

View File

@ -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));
}