Return to Snippet

Revision: 27646
at June 18, 2010 19:05 by jayboodhun


Initial Code
$view = views_get_view($view_name);
$display_id = 'page_1'; // Can be feed_1 or block_1
$view->set_display($display_id);
$view->preview = TRUE;
$view->pre_execute(array()); //args
$view->is_cacheable = FALSE;
$data = $view->render($display_id); // render
return $data;

Initial URL
http://www.jayboodhun.com

Initial Description

                                

Initial Title
Embedding Views / displaying Views programatically

Initial Tags
drupal

Initial Language
PHP