Return to Snippet

Revision: 11448
at February 5, 2009 16:41 by wrburgess


Initial Code
/* You can simply paste this code into a page or template */

<?php
  $view_args = array();
  $display_id = 'page_1';
  $view = views_get_view('[enter view name here]');
       if (!empty($view)) {
        print $view->execute_display($display_id , $view_args);
  }
?>

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

Initial Description

                                

Initial Title
Inserting a View into a Page in Drupal 6

Initial Tags
php

Initial Language
PHP