Community & Support

Add block through template.php

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!

Comments

=-=

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

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.

=-=

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

You are a lifesaver! Thank

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