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

CZ’s picture

Status: Active » Fixed

Should be fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jsaints’s picture

Status: Closed (fixed) » Needs work

This is still a bug. Just tested today. I think it was changed to closed by mistake.

CZ’s picture

CZ’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dkruglyak’s picture

Status: Closed (fixed) » Needs review

Please 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.

mrfelton’s picture

Status: Needs review » Needs work

Agreed. 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.

CZ’s picture

Status: Needs work » Fixed

Moved back to hook_init().

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.