Wednesday, June 23, 2010

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.

No comments:

Post a Comment