Posted By

resting on 10/29/10


Tagged


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

AllKnightAccess
Onfire60
tronx
geldora


Drupal print views programmatically


 / Published in: PHP
 

In this example, create a block view, where ftglist is the views name.

  1. $view = views_get_view('f_tg_list');
  2. $type = 'block';
  3.  
  4. $use_pager = false;
  5. $f_tg_list = views_build_view($type, $view, $args = array(), $use_pager, $limit);
  6.  
  7. print $f_tg_list;

Report this snippet  

You need to login to post a comment.