Skip to content

Instantly share code, notes, and snippets.

@batandwa
Created June 8, 2012 12:20
Show Gist options
  • Save batandwa/2895354 to your computer and use it in GitHub Desktop.
Save batandwa/2895354 to your computer and use it in GitHub Desktop.
Drupal - Load and print a view programmatically
<?php
$view_args = array(3);
$view_display_id = 'default';
$view = views_get_view('view_id');
print $view->execute_display($view_display_id, $view_args),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment