Using Module invoke function that works like ‘Include()’:

<?php 
$block = module_invoke('views', 'block', 'view', 'testing_lab_type-block_2');
print $block['content'];
?>
Notice that the middle two terms ('block', 'view') always stay the same. You're simply updating the first and last term.

Comments

Popular posts from this blog

How to Reset Root Password in Drupal 7 with phpMyAdmin

Syntax Highlighting with Blogger Engine