Adding Blocks and Views into a Drupal 7 Theme

Adding a Block to a Drupal 7 Template

<?php $block = module_invoke('sharethis', 'block_view', 'sharethis_block', 0);  print $block['content'];  ?>

Adding a View to a Drupal 7 Template

<?php $viewName = 'author_bio'; print views_embed_view($viewName);?>

About the Author

Aaron Weiss is currently a Graduate Cinema Studies student at the Savannah College of Art and Design and slowly, but surely, finishing up his thesis. When not working on his thesis, he writes movie reviews for CinemaFunk and prog rock reviews for ProgSnobs.