Closed (fixed)
Project:
Text Size
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2009 at 22:38 UTC
Updated:
1 Oct 2009 at 18:10 UTC
Please see for full details of the problem: http://drupal.org/node/374645
In summary: You can not use path_to_theme() in hook_init().
Comments
Comment #1
CZ commentedShould be fixed.
Comment #3
jsaints commentedThis is still a bug. Just tested today. I think it was changed to closed by mistake.
Comment #4
CZ commentedShould now fixed http://drupal.org/node/443404#comment-1574630
Comment #5
CZ commentedComment #7
dkruglyak commentedPlease note the problem with this fix as described here: http://drupal.org/node/399694
Moving the code out of hook_init does not work, since other modules might not be loaded when they are needed (e.g. jquery_plugin).
I am not sure about the solution as new to this module, but there should be a way to use hook_init, while avoiding its limitations.
Comment #8
mrfelton commentedAgreed. This is not the correct solution. Moving these functions to the end of the module file causes other problems such as
It seems that path_to_theme() is not even used anymore in textsize.module, so I think it's safe to move these functions back into hook_init(). I can confirm that in doing so, the maintenance theme once again works correctly.
Comment #9
CZ commentedMoved back to hook_init().