From a154917d57003961eb76580e7d468a53647a9ee4 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 17 Feb 2015 16:02:36 +0000 Subject: [PATCH] Issue #2427105 by andypost: Remove unused user_menu_breadcrumb_alter() --- core/modules/user/user.module | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 5d39ce32dfb5..749b842281a3 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -569,17 +569,6 @@ function template_preprocess_username(&$variables) { } } -/** - * Implements hook_menu_breadcrumb_alter(). - */ -function user_menu_breadcrumb_alter(&$active_trail, $item) { - // Remove "My account" from the breadcrumb when $item is descendant-or-self - // of system path user/%. - if (isset($active_trail[1]['module']) && $active_trail[1]['machine_name'] == 'user.page' && strpos($item['path'], 'user/%') === 0) { - array_splice($active_trail, 1, 1); - } -} - /** * Finalizes the login process and logs in a user. * -- GitLab