Fix nodeasblock 5.x-1.1 to work with subthemes
eli - October 16, 2008 - 18:22
| Project: | Node As Block |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
nodeasblock currently looks up blocks based on the $theme instead of the $theme_key. This is fine most of the time, but when using Zen-style subthemes it breaks in the following ways: when you edit a node it "forgets" what region it was in, and the list of available regions is based on the main theme not the subtheme.
This patch should fix that.
| Attachment | Size |
|---|---|
| nodeasblock_use_theme_key.patch | 1.53 KB |

#1
changed to (code needs review)
#2
I applied this patch to the 5.x-1.x-dev version, had to replace more than one occurance to the file and it seems to work. Applying the fix to 5.x-1.1 was pointless, as there is much (necessary) added functionality in the dev version that you lose with the 5.x-1.1. I've attached my patched copy of nodeasblock.module for anyone who is interested. Great module!