Closed (fixed)
Project:
Special menu items
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Apr 2014 at 00:18 UTC
Updated:
30 Jun 2015 at 23:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damienmckennaFor one site we just removed the breadcrumb trail integration entirely, because breadcrumbs weren't being used.
Comment #2
damienmckennaFYI Dane Powell wrote the patch, I'm just uploading it.
Comment #3
alan d. commentedlol, so three things
1) Why is this needed?
2) Change to a latter hook, page alter, preprocess page or something as per the reason given to 1
3) Make configurable with a toggle variable_get('special_menu_item_set_breadcrumbs', 1) + uninstall hook. I recon that no admin UI required, rather let users edit settings.php or exec php to set this. i.e. in settings.php use $conf['special_menu_item_set_breadcrumbs'] = 1; to disable breadcrumb integration or something like this in the read me file.
Comment #4
damienmckennaThe appropriate status.
I'll ask Dane to respond, he'd know the details on why the code needed to be removed, beyond the blanket statement of "performance!"
Comment #5
danepowell commented"Because performance" is part of it- I agree with this comment made when the hook_init was added: #573034-13: Breadcrumbs still show links.
But mostly we saw some reports that it might cause trouble (in the OP here and in #489964: Breaks the block admin page when separate admin theme is used), and we didn't want to take any chances.
Comment #6
o'briatHi,
I'm quite interested about the performance issue.
I get slow response time on a web service path and I notice more than half the bootstrap time was spend on special_menu_items_init which is strange for a "MENU_CALLBACK" hook_menu type.
I think this code should be moved for later execution and triggered only if needed ?
Drupal 6
Duration : 2,5s total, 2.5s for bootstrap (including 1s for special_menu_items_init) and 1ms for my hook_menu
Comment #7
ey commentedI am also in favor of removing this hook_init implementation, since it takes more than 800ms on Drupal 7.36 and it doesn't even bring much, if ever. After removing this hook, I don't see any changes on how the breadcrumbs displayed, but didn't test it on a clean Drupal. So I guess it is just unnecessary, and impacting the performance in an unacceptable way.
Comment #9
gagarine commentedI committed the hook_init deletion. As I remember it was to remove "link" from the breadcrumb. But this is a very small issue compared to 800ms lost.
Comment #11
roderikThanks for this commit. It solved #1892064: title empty for me.