Posted By

mimlee on 11/23/10


Tagged

drupal views


Versions (?)

Display Views context display programmatically


 / Published in: PHP
 

Example used in New Play Map

  1. $view = views_get_view('plays');
  2. $view->init_display('ctools_context_1');
  3. $plays = $view->execute_display('ctools_context_1', array($generative_artist));
  4.  
  5. foreach($plays['view']->result as $each_play) {
  6. // do stuff
  7. }

Report this snippet  

You need to login to post a comment.