Very useful lines of code to embed "Views 2" views into your nodes. Works almost as the old use_pager, $view->nodes_per_block)); ?> in Drupal 5 but for Drupal 6. This is also a way to embed views programatically into your pages and nodes.
The following lines of code will load a view and print the display.
use_pager) {
$output .= theme('pager', '', $view->pager_limit, $view->use_pager - 1);
}
$output .= theme_views_view($view, $type, $nodes, $level = NULL, $args = NULL);
return $output;
}
?>
Tested in drupal 4.x and 5.x