Closed (fixed)
Project:
Theme developer
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2011 at 01:59 UTC
Updated:
17 Aug 2011 at 23:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
swentel commentedMeh, looks like the weight of ds is the problem - or the weight of devel_themer. Fun racing conditions in theme_registry_alter. If I change the weight of devel_themer to say 10, than all is ok again. So there are options:
- either file this agains devel_themer and a small patch againsts devel_themer.install to set the weight
- or maybe devel_themer_implements_alter() to inject their registry_alter as latest function
- check in ds_module_implements_alter to make sure devel_themer is last - which imo is the least interesting option.
tbh, I think option 1 is better, because there might be other modules/apps out there who want todo things on preprocessing.
Comment #2
swentel commentedModules with a lower weight implementing preprocess_hooks or injecting them also into the registry with hook_theme_registry_alter() are not found in devel_themer_theme_registry_alter(). Patch attached lowers the weight and fixes it all.
Comment #3
swentel commentedBetter patch using hook_module_implements_alter()
Comment #4
effulgentsia commentedThanks. Tweaked #3 a bit, and committed this to master branch.