Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, how do I get nodeasblock to save to the default theme rather than the currently active theme? I use the administration theme for content editing, which (I think) causes nodeasblock to save it with the administration theme instead of the default theme. What's the best way to fix this?
Comments
Comment #1
dropcube CreditAttribution: dropcube commentedThis is a problem we currently have. alternatively, as administrator, you can go to the block admin page and enable the block in other themes you need to.
I am leaving this issue open to see what others have to say.
Comment #2
dropcube CreditAttribution: dropcube commentedI have committed a fix to this. Blocks are now saved to the default theme rather than currently active theme.
Comment #4
detot CreditAttribution: detot commentedThis doesn't work for me.
It still says "The block xxx was assigned to the invalid region %region and has been disabled." when trying to save to a region that only is in my default theme and not in my admin theme.
Tried beta-1 and dev.
Comment #5
drupalninja99 CreditAttribution: drupalninja99 commentedi am having the same issue
Comment #6
dropcube CreditAttribution: dropcube commentedOk, I found the bug. The problem is that _block_rehash in block.module uses the active theme (global $theme_key) to updating the 'blocks' DB table with the blocks currently exported by modules. So, the block is placed in the active theme, and not in the default theme as expected.
http://drupal.org/cvs?commit=412388
Committed this fix, please test.