Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rocketnova/715720 to your computer and use it in GitHub Desktop.
Save rocketnova/715720 to your computer and use it in GitHub Desktop.
Display Views context display programmatically
$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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment