Skip to content

Instantly share code, notes, and snippets.

@laurelstreng
Created September 22, 2016 14:03
Show Gist options
  • Save laurelstreng/fc765686daf1360e04ff7a8997f54264 to your computer and use it in GitHub Desktop.
Save laurelstreng/fc765686daf1360e04ff7a8997f54264 to your computer and use it in GitHub Desktop.
Drupal 7 - Print Views Block Content In Templates
<?php
$block = module_invoke('views', 'block_view', 'my_viewname-block');
print render($block);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment