Return to Snippet

Revision: 36572
at November 23, 2010 09:08 by mimlee


Initial Code
$view = views_get_view('plays');
$view->init_display('ctools_context_1');
$plays = $view->execute_display('ctools_context_1', array($generative_artist));

foreach($plays['view']->result as $each_play) {
  // do stuff
}

Initial URL

                                

Initial Description
Example used in New Play Map

Initial Title
Display Views context display programmatically

Initial Tags
drupal

Initial Language
PHP