Turns off block admin of the theme
cinemasaville - June 30, 2008 - 00:15
| Project: | Advanced Forum |
| Version: | 6.x-1.0-alpha2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
When I enable this module, I'm no longer able to admin blocks in the production theme, it only works with the administration theme. Is this a feature to turn off, or is this an actual bug? Either way I disabled it, but thought you might want to know in case other people were dealing with it.
Thanks.

#1
I have this problem too.
Its occurs because of executing init_theme() function in init module phase. Its not right. Developers should add CSS files later or make exception for page admin/build/block
sorry for easy english.
Update: i'm not sure that its best hack, but it seems to be work:
In advanced_forum.module, rows 23-25
function advanced_forum_init() {advanced_forum_add_css();
}
change to:
function advanced_forum_init() {if (arg(0) == 'forum') advanced_forum_add_css();
}
#2
Putting it in hook_init isn't wrong in general. That's what core does, after all. But, if it's causing problems, I'll try moving it to the preprocess and see if that fixes it.
Michelle
#3
I can't reproduce this in the latest dev so it seems to have been fixed.
Michelle
#4
Automatically closed -- issue fixed for two weeks with no activity.