Posted By

wrburgess on 02/05/09


Tagged

php views drupal6


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

comfixit
ReeceMarsland
panatlantica
EkTrOn
mbria
daipratt


Inserting a View into a Page in Drupal 6


 / Published in: PHP
 

URL: http://www.pixelclever.com/how-programmatically-insert-a-view-drupal-6

  1. /* You can simply paste this code into a page or template */
  2.  
  3. <?php
  4. $view_args = array();
  5. $display_id = 'page_1';
  6. $view = views_get_view('[enter view name here]');
  7. if (!empty($view)) {
  8. print $view->execute_display($display_id , $view_args);
  9. }
  10. ?>

Report this snippet  

You need to login to post a comment.