Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
overlay.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2010 at 14:04 UTC
Updated:
25 Jun 2010 at 12:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
David_Rothstein commentedThis makes sense, although some of that is there already, right? (Since overlay_set_mode() already only works the first time you call it...) But I guess this patch would also prevent some of the stuff that's hardcoded into overlay_init() from running as well. It's not totally clear to me what the boundary is between code that belongs inside overlay_init() and code that belongs inside overlay_set_mode() itself.
Anyway, here is an updated patch that fixes a typo in the code comment and also tries to rewrite and expand the code comments for overlay_set_mode() to explain more how other modules can actually enable/disable the overlay. I think it might still need a bit more work, though.
Comment #2
gábor hojtsyNew patch is the same approach that I did above but has added comments on how useful it is :) I think its great. Since it is mostly a docs/typo change, I don't feel empowered to RTBC it, since it feels like RTBC-ing my own patch :)
Comment #3
ksenzeeLooks great to me. Probably overlay_init() and overlay_set_mode() could largely be combined, but that's an issue for another day.
Comment #4
klausitrailing whitespace
Powered by Dreditor.
Comment #5
aspilicious commented#1: overlay-check-mode-743908-1.patch queued for re-testing.
Comment #6
aspilicious commentedThink this needs a reroll
Comment #8
casey commentedReroll.
Comment #9
ksenzeeThanks for the reroll casey. Still looks good and tests fine.
Comment #10
dries commentedLooks good, and thanks for the extra information. Committed to CVS HEAD. Thanks.