Programmatically create a block region in Drupal 7 I am stuck with programmatically creating of regions in Drupal 7. I know how to create regions in .info file, but my problem is that I want regions for every node I create, to show a specific block to each and every node differently.

I am interested in Drupal 7 only. If it is possible by creating a module, that is a solution that interests me, too.
Edit your theme .info file to add the following line:

regions[youregionname] = Your Region name

Edit your template file (e.g. "page.tpl.php"), and add the following lines:

&lt;?php if(!empty($page['youregionname'])) : ?&gt; &lt;!--check if region enabled--&gt;
  &lt;div class='my-new-region-class' &gt;   &lt;!--add class to my region--&gt;
    &lt;?php print render($page['youregionname']); ?&gt; &lt;!--print the region--&gt;
  &lt;/div&gt;
&lt;?php endif; ?&gt;



After editing the files, don't forget to clear the cache.