subject: Using Code To Display Drupal 6 Block [print this page] In this post we are going to look at how to easily display Drupal 6 block using codes.
At times we all are required to have reminders on some apparently simple things. We are going to share one of those snippets of code that we find very useful and thus needed quite often. We decided to share it so that along with us, even you can locate it to utilize it in your use case.
While sharing it, its good to mention we used of most of the code/concepts from the comments at http://api.drupal.org/api/drupal/developer!theme.php/function/theme_block/6.
The below PHP code provides instances of the way to display Drupal 6 block using code in a simple manner. This can be something that you put in a Drupal 6 template file or a Drupal 6 theme function.
In case you simply want to get the content of the Drupal 6 block, then you may use the following code:
This is very simple, but indeed very useful. So, go ahead and make use of this easy yet useful technique.
Valuebound is a leading Drupal Development Company providing Enterprise Drupal web solutions. For more information on Drupal Development, contact us at info@valuebound.com