Loading full block including contextual menu via a template or custom loader function


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



Copy this code and paste it in your HTML
  1. $block = block_load('module', 'block_name/delta');
  2. $output = drupal_render(_block_get_renderable_array(_block_render_blocks(array($block))));
  3.  
  4. //in template
  5. print $output;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.