Add block through template.php

geocalleo - November 2, 2009 - 20:38

Okay, I'm still looking through the forums but I'm having a hard time finding this answer. In Drupal 6.x, is there a way to load a block onto a region in template.php?

Thanks in advance!

=-=

VM - November 2, 2009 - 20:42

why not just enable the block in a region in administer -> blocks? and control visibility with the visibility settings on that block?

It's a bit more complicated

geocalleo - November 2, 2009 - 20:55

It's a bit more complicated then controlling the block through administer -> blocks because I want this block to appear for 404 page not found pages.

I'm using the module customerror.

=-=

VM - November 2, 2009 - 20:57

in that case have you looked @ http://drupal.org/project/blocks404 ?

You are a lifesaver! Thank

geocalleo - November 2, 2009 - 21:01

You are a lifesaver! Thank you so very much. That worked like a charm!

 
 

Drupal is a registered trademark of Dries Buytaert.