Skip to content

Instantly share code, notes, and snippets.

@gavinblair
Created September 9, 2011 15:44
Show Gist options
  • Save gavinblair/1206557 to your computer and use it in GitHub Desktop.
Save gavinblair/1206557 to your computer and use it in GitHub Desktop.
print a block generated by a view from a tpl.php file
<?php
//third param: my_view_name-block_id
$block = module_invoke('views', 'block_view', 'magazine_issues-block_1');
print render($block);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment