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.

AttachmentSize
nodeasblock_use_theme_key.patch1.53 KB

#1

seutje - January 28, 2009 - 15:25
Status:active» needs review

changed to (code needs review)

#2

jayson - July 14, 2009 - 14:43

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
 
 

Drupal is a registered trademark of Dries Buytaert.