I didn't have any theme code to this point, but if I introduce it, wouldn't the region include the blocks I -do- want as well? ------Original Message------ From: Fred Jones Sender: development-bounces@drupal.org To: development@drupal.org ReplyTo: development@drupal.org Subject: Re: [development] Block blocking Sent: Jul 18, 2011 11:06 AM In your theme code you could just empty the regions variables... On Mon, Jul 18, 2011 at 6:02 PM, <jeff@ayendesigns.com> wrote:
This is D6
Ayen Designs - quality software the first time, every time!
one possible approach: in your code call drupal_set_content('mycustomregion', $content_here); implement hook_preprocess_page in your module and set $vars['left'] = $vars['mycustomregion']; - substitute left for the region you're trying to empty - if this has to work with all themes you might need to be creative with it and fetch the list of regions for the theme but that's another can or worms. if you're calling drupal_set_content in your preprocess_page hook you'll need to use drupal_get_content (see template_preprocess_page). disclaimer: untested approach On Mon, 2011-07-18 at 15:14 +0000, jeff@ayendesigns.com wrote:
I didn't have any theme code to this point, but if I introduce it, wouldn't the region include the blocks I -do- want as well?
In your theme code you could just empty the regions variables...
participants (2)
-
jeff@ayendesigns.com -
Lee Rowlands (Rowlands Group)