Download & Extend

Fix nodeasblock 5.x-1.1 to work with subthemes

Project:Node As Block
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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.

AttachmentSize
nodeasblock_use_theme_key.patch1.53 KB

Comments

#1

Status:active» needs review

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!

AttachmentSize
nodeasblock 5.x-1.x-dev patched.zip 3.33 KB
nobody click here