blocks

Print block in node

If you want to print block in node (node.tpl.php) or page template, you can use following functions:

module_invoke

<?php    
              $block = module_invoke('views', 'block', 'view', 'related_content-block_1');
               print '<h3>'.$block['subject'].'</h3>';  // block title
               print $block['content'];  // block - view content

?>

if you need to apply some arguments to show view you can use this code:

views_embed_view

Testimonials

With finished work we were greatly satisfied.

Roman Gabura, GreenProduction

Are you around here?

When you`re not far, come visit us.

Contact