Drupal: Insert Block in region in code


/ Published in: PHP
Save to your folder(s)

How to set a block into region with code


Copy this code and paste it in your HTML
  1. //This is for the theme.info file
  2. regions[comments] = Comment area on cases
  3.  
  4. //This is for at preprocess file
  5. $vars['comments'] = theme('blocks', 'comments');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.