Posted By

hamsterbacke82 on 10/21/10


Tagged

drupal theme views


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

AllKnightAccess
geldora
variantstudios


Drupal embedding View in theme


 / Published in: PHP
 

  1. <?php
  2. $viewName = 'MYVIEWNAME';
  3. $display_id = 'block';
  4. $myNodes = array(1, 2, 3);
  5. print views_embed_view($viewName, $display_id, $myNodes);
  6. ?>

Report this snippet  

You need to login to post a comment.