Drupal embedding View in theme


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.