views_view_page()This views a view by page, and should only be used as a callback.
$view_name The name or id of the view to load
$args The arguments from the end of the url. Usually passed from the menu system.
The view page.
contributions/views/views.module, line 401
<?php
function views_view_page() {
$args = func_get_args();
$view_name = array_shift($args);
$view = views_get_view($view_name);
if (!$view) {
drupal_not_found();
exit;
}
$output = views_build_view('page', $view, $args, $view->use_pager, $view->nodes_per_page);
if ($output === FALSE) {
drupal_not_found();
exit;
}
return $output;
}
?>