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.

Comments

seutje’s picture

Status: Active » Needs review

changed to (code needs review)

jayson’s picture

StatusFileSize
new3.33 KB

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!