function views_view_page in Views (for Drupal 7) 5
This views a view by page, and should only be used as a callback.
Parameters
$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.
Return value
The view page.
2 string references to 'views_view_page'
- views_ui_add_menu_items in ./
views_ui.module - _views_menu_item in ./
views.module - Helper function to create a menu item for a view.
File
- ./
views.module, line 401
Code
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;
}